File tree Expand file tree Collapse file tree 8 files changed +22
-20
lines changed
SlidersExamples.xcodeproj Expand file tree Collapse file tree 8 files changed +22
-20
lines changed Original file line number Diff line number Diff line change 2020<string >$(MARKETING_VERSION) </string >
2121<key >CFBundleVersion </key >
2222<string >1 </string >
23+ <key >LSApplicationCategoryType </key >
24+ <string >public.app-category.developer-tools </string >
2325<key >LSMinimumSystemVersion </key >
2426<string >$(MACOSX_DEPLOYMENT_TARGET) </string >
2527<key >NSMainStoryboardFile </key >
Original file line number Diff line number Diff line change 573573DEBUG_INFORMATION_FORMAT = dwarf;
574574DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES;
575575DEVELOPMENT_ASSET_PATHS = "\"SlidersExamples iOS\"/Preview\\ Content";
576- DEVELOPMENT_TEAM = Z8L4G5WZR3 ;
576+ DEVELOPMENT_TEAM = "" ;
577577ENABLE_PREVIEWS = YES;
578578ENABLE_STRICT_OBJC_MSGSEND = YES;
579579ENABLE_TESTABILITY = YES;
652652DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
653653DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES;
654654DEVELOPMENT_ASSET_PATHS = "\"SlidersExamples iOS\"/Preview\\ Content";
655- DEVELOPMENT_TEAM = Z8L4G5WZR3 ;
655+ DEVELOPMENT_TEAM = "" ;
656656ENABLE_NS_ASSERTIONS = NO;
657657ENABLE_PREVIEWS = YES;
658658ENABLE_STRICT_OBJC_MSGSEND = YES;
Original file line number Diff line number Diff line change 11import SwiftUI
22
3- struct AnyPointSliderStyle : PointSliderStyle {
3+ public struct AnyPointSliderStyle : PointSliderStyle {
44 private let styleMakeBody : ( PointSliderStyle . Configuration ) -> AnyView
55
6- init < S: PointSliderStyle > ( _ style: S ) {
6+ public init < S: PointSliderStyle > ( _ style: S ) {
77 self . styleMakeBody = style. makeTypeErasedBody
88 }
99
10- func makeBody( configuration: PointSliderStyle . Configuration ) -> AnyView {
10+ public func makeBody( configuration: PointSliderStyle . Configuration ) -> AnyView {
1111 self . styleMakeBody ( configuration)
1212 }
1313}
Original file line number Diff line number Diff line change 11import SwiftUI
22
3- extension EnvironmentValues {
3+ public extension EnvironmentValues {
44 var pointSliderStyle : AnyPointSliderStyle {
55 get {
66 return self [ PointSliderStyleKey . self]
@@ -17,9 +17,9 @@ struct PointSliderStyleKey: EnvironmentKey {
1717 )
1818}
1919
20- extension View {
20+ public extension View {
2121 /// Sets the style for `PointSlider` within the environment of `self`.
22- public func pointSliderStyle< S> ( _ style: S ) -> some View where S : PointSliderStyle {
22+ @ inlinable func pointSliderStyle< S> ( _ style: S ) -> some View where S : PointSliderStyle {
2323 self . environment ( \. pointSliderStyle, AnyPointSliderStyle ( style) )
2424 }
2525}
Original file line number Diff line number Diff line change 11import SwiftUI
22
3- struct AnyRangeSliderStyle : RangeSliderStyle {
3+ public struct AnyRangeSliderStyle : RangeSliderStyle {
44 private let styleMakeBody : ( RangeSliderStyle . Configuration ) -> AnyView
55
6- init < S: RangeSliderStyle > ( _ style: S ) {
6+ public init < S: RangeSliderStyle > ( _ style: S ) {
77 self . styleMakeBody = style. makeTypeErasedBody
88 }
99
10- func makeBody( configuration: RangeSliderStyle . Configuration ) -> AnyView {
10+ public func makeBody( configuration: RangeSliderStyle . Configuration ) -> AnyView {
1111 self . styleMakeBody ( configuration)
1212 }
1313}
Original file line number Diff line number Diff line change 11import SwiftUI
22
3- extension EnvironmentValues {
3+ public extension EnvironmentValues {
44 var rangeSliderStyle : AnyRangeSliderStyle {
55 get {
66 return self [ RangeSliderStyleKey . self]
@@ -17,9 +17,9 @@ struct RangeSliderStyleKey: EnvironmentKey {
1717 )
1818}
1919
20- extension View {
20+ public extension View {
2121 /// Sets the style for `RangeSlider` within the environment of `self`.
22- public func rangeSliderStyle< S> ( _ style: S ) -> some View where S : RangeSliderStyle {
22+ @ inlinable func rangeSliderStyle< S> ( _ style: S ) -> some View where S : RangeSliderStyle {
2323 self . environment ( \. rangeSliderStyle, AnyRangeSliderStyle ( style) )
2424 }
2525}
Original file line number Diff line number Diff line change 11import SwiftUI
22
3- struct AnyValueSliderStyle : ValueSliderStyle {
3+ public struct AnyValueSliderStyle : ValueSliderStyle {
44 private let styleMakeBody : ( ValueSliderStyle . Configuration ) -> AnyView
55
6- init < S: ValueSliderStyle > ( _ style: S ) {
6+ public init < S: ValueSliderStyle > ( _ style: S ) {
77 self . styleMakeBody = style. makeTypeErasedBody
88 }
99
10- func makeBody( configuration: ValueSliderStyle . Configuration ) -> AnyView {
10+ public func makeBody( configuration: ValueSliderStyle . Configuration ) -> AnyView {
1111 self . styleMakeBody ( configuration)
1212 }
1313}
Original file line number Diff line number Diff line change 11import SwiftUI
22
3- extension EnvironmentValues {
3+ public extension EnvironmentValues {
44 var valueSliderStyle : AnyValueSliderStyle {
55 get {
66 return self [ ValueSliderStyleKey . self]
@@ -17,9 +17,9 @@ struct ValueSliderStyleKey: EnvironmentKey {
1717 )
1818}
1919
20- extension View {
20+ public extension View {
2121 /// Sets the style for `ValueSlider` within the environment of `self`.
22- public func valueSliderStyle< S> ( _ style: S ) -> some View where S : ValueSliderStyle {
22+ @ inlinable func valueSliderStyle< S> ( _ style: S ) -> some View where S : ValueSliderStyle {
2323 self . environment ( \. valueSliderStyle, AnyValueSliderStyle ( style) )
2424 }
2525}
You can’t perform that action at this time.
0 commit comments