Bläddra i källkod

display(iOS): rework menu label workaround

osy 3 år sedan
förälder
incheckning
1b6ad6aacf
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      Platform/Shared/MenuLabel.swift

+ 3 - 3
Platform/Shared/MenuLabel.swift

@@ -28,10 +28,10 @@ struct MenuLabel: View {
     }
     
     var body: some View {
-        if #available(iOS 15, *) {
-            label
+        if #available(iOS 14.5, *) {
+            label.labelStyle(.titleAndIcon)
         } else {
-            // prior to iOS 15, menu with title and icon doesn't show up
+            // prior to iOS 14.5, menu with title and icon doesn't show up
             label.labelStyle(.titleOnly)
         }
     }