2
0
Эх сурвалжийг харах

display(iOS): rework menu label workaround

osy 3 жил өмнө
parent
commit
1b6ad6aacf

+ 3 - 3
Platform/Shared/MenuLabel.swift

@@ -28,10 +28,10 @@ struct MenuLabel: View {
     }
     }
     
     
     var body: some View {
     var body: some View {
-        if #available(iOS 15, *) {
-            label
+        if #available(iOS 14.5, *) {
+            label.labelStyle(.titleAndIcon)
         } else {
         } 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)
             label.labelStyle(.titleOnly)
         }
         }
     }
     }