@@ -16,7 +16,7 @@ public struct PlatformViewVersionPredicate<SwiftUIViewType: IntrospectableViewTy
1616 }
1717 }
1818
19- public static func iOS( _ versions: ( iOSViewVersion < SwiftUIViewType , PlatformSpecificEntity > ) ... ) -> Self {
19+ public static func iOS( _ versions: iOSViewVersion < SwiftUIViewType , PlatformSpecificEntity > ... ) -> Self {
2020 Self ( versions, matches: \. isCurrent)
2121 }
2222
@@ -25,7 +25,7 @@ public struct PlatformViewVersionPredicate<SwiftUIViewType: IntrospectableViewTy
2525 Self ( [ versions. lowerBound] , matches: \. isCurrentOrPast)
2626 }
2727
28- public static func tvOS( _ versions: ( tvOSViewVersion < SwiftUIViewType , PlatformSpecificEntity > ) ... ) -> Self {
28+ public static func tvOS( _ versions: tvOSViewVersion < SwiftUIViewType , PlatformSpecificEntity > ... ) -> Self {
2929 Self ( versions, matches: \. isCurrent)
3030 }
3131
@@ -34,7 +34,7 @@ public struct PlatformViewVersionPredicate<SwiftUIViewType: IntrospectableViewTy
3434 Self ( [ versions. lowerBound] , matches: \. isCurrentOrPast)
3535 }
3636
37- public static func macOS( _ versions: ( macOSViewVersion < SwiftUIViewType , PlatformSpecificEntity > ) ... ) -> Self {
37+ public static func macOS( _ versions: macOSViewVersion < SwiftUIViewType , PlatformSpecificEntity > ... ) -> Self {
3838 Self ( versions, matches: \. isCurrent)
3939 }
4040
@@ -43,7 +43,7 @@ public struct PlatformViewVersionPredicate<SwiftUIViewType: IntrospectableViewTy
4343 Self ( [ versions. lowerBound] , matches: \. isCurrentOrPast)
4444 }
4545
46- public static func visionOS( _ versions: ( visionOSViewVersion < SwiftUIViewType , PlatformSpecificEntity > ) ... ) -> Self {
46+ public static func visionOS( _ versions: visionOSViewVersion < SwiftUIViewType , PlatformSpecificEntity > ... ) -> Self {
4747 Self ( versions, matches: \. isCurrent)
4848 }
4949
@@ -89,19 +89,19 @@ public enum PlatformViewVersion<Version: PlatformVersion, SwiftUIViewType: Intro
8989 }
9090
9191 private var version : Version ? {
92- if case . available( let version, _) = self {
93- return version
92+ if case let . available( version, _) = self {
93+ version
9494 } else {
95- return nil
95+ nil
9696 }
9797 }
9898
9999 @MainActor
100100 fileprivate var selector : IntrospectionSelector < PlatformSpecificEntity > ? {
101- if case . available( _, let selector) = self {
102- return selector
101+ if case let . available( _, selector) = self {
102+ selector
103103 } else {
104- return nil
104+ nil
105105 }
106106 }
107107
@@ -117,11 +117,11 @@ public enum PlatformViewVersion<Version: PlatformVersion, SwiftUIViewType: Intro
117117// This conformance isn't meant to be used directly by the user,
118118// it's only to satisfy requirements for forming ranges (e.g. `.v15...`).
119119extension PlatformViewVersion : Comparable {
120- nonisolated public static func == ( lhs: Self , rhs: Self ) -> Bool {
120+ public nonisolated static func == ( lhs: Self , rhs: Self ) -> Bool {
121121 true
122122 }
123123
124- nonisolated public static func < ( lhs: Self , rhs: Self ) -> Bool {
124+ public nonisolated static func < ( lhs: Self , rhs: Self ) -> Bool {
125125 true
126126 }
127127}
0 commit comments