SwiftUI โฉ Data Flow โฉ State โฉ init
// @State property in content view @State private var time: Int // custom initializer in extension init(time: Int) { _time = State(initialValue: time) // โญ๏ธ init @State // init other properties ... }
Swatch
compare: init Binding.
Last updated 2 years ago