I hereby claim:
- I am frankfka on github.
- I am gpvalidator (https://keybase.io/gpvalidator) on keybase.
- I have a public key ASDyZ-vlurO2MaRi5rQriZ4pQZF55pkQRajvOxHGY-bkdwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import SwiftUI | |
| import PlaygroundSupport | |
| struct MultiSegmentPickerViewModel { | |
| typealias Label = String | |
| typealias Selection = Binding<Int> | |
| typealias PickerDisplayValues = [String] | |
| let segments: [(Label, Selection, PickerDisplayValues)] | |
| } |
| import SwiftUI | |
| extension View { | |
| func eraseToAnyView() -> AnyView { | |
| AnyView(self) | |
| } | |
| } | |
| struct SizePreferenceKey: PreferenceKey { | |
| typealias Value = CGSize |
| import SwiftUI | |
| import PlaygroundSupport | |
| extension Double { | |
| func toRadians() -> Double { | |
| return self * Double.pi / 180 | |
| } | |
| func toCGFloat() -> CGFloat { | |
| return CGFloat(self) |