This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@propertyWrapper | |
struct AnimatedState<Value> : DynamicProperty { | |
let storage: State<Value> | |
let animation: Animation? | |
init( | |
value: Value, | |
animation: Animation? = nil | |
) { | |
self.storage = State<Value>(initialValue: value) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Created by Daniel Tavares on 07/05/2021. | |
// | |
import SwiftUI | |
// MARK: - OptionsSet | |
// Blog post https://dev.to/vibrazy/easy-swiftui-view-bindings-using-optionset-and-sourcery-4edb | |
protocol OptionsBinding {} |
OlderNewer