Changes for iOS 13 beta 6
This commit is contained in:
parent
7064ae950e
commit
0df8ada3d6
|
@ -8,7 +8,7 @@
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
@propertyWrapper
|
@propertyWrapper
|
||||||
struct Preference<Value>: BindingConvertible {
|
struct Preference<Value> {
|
||||||
let path: WritableKeyPath<Preferences, Value>
|
let path: WritableKeyPath<Preferences, Value>
|
||||||
let binding: Binding<Value>
|
let binding: Binding<Value>
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ struct Preference<Value>: BindingConvertible {
|
||||||
}
|
}
|
||||||
|
|
||||||
@propertyWrapper
|
@propertyWrapper
|
||||||
struct MappedPreference<Value, PrefValue>: BindingConvertible {
|
struct MappedPreference<Value, PrefValue> {
|
||||||
let path: WritableKeyPath<Preferences, PrefValue>
|
let path: WritableKeyPath<Preferences, PrefValue>
|
||||||
let fromPref: (PrefValue) -> Value
|
let fromPref: (PrefValue) -> Value
|
||||||
let toPref: (Value) -> PrefValue
|
let toPref: (Value) -> PrefValue
|
||||||
|
|
Loading…
Reference in New Issue