Skip to content

Default ContractView

Compare
Choose a tag to compare
@0xLeif 0xLeif released this 02 Sep 13:38
8ff6c45
var contractView: ContractView<UIView, Int> = ContractView { contractView in
    Contract(initialValue: 0)
        .onChange { (value) in
            print("New Value: \(String(describing: value))")
            Later.main {
                // Update UI
            }
    }
}