d
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import Combine
|
import Combine
|
||||||
|
|
||||||
extension Cord {
|
extension Cord {
|
||||||
final class ReadOnly<T>: ObservableObject {
|
final class Receive<T>: ObservableObject {
|
||||||
@Published var value: T
|
@Published var value: T
|
||||||
var subscriptions = [AnyCancellable]()
|
var subscriptions = [AnyCancellable]()
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
struct V: View {
|
struct V: View {
|
||||||
@StateObject var isJoinAvailable = Cord.ReadOnly("joinAvailable", false)
|
@StateObject var isJoinAvailable = Cord.Receive("joinAvailable", false)
|
||||||
@StateObject var join = Cord.Button("join")
|
@StateObject var join = Cord.Button("join")
|
||||||
@StateObject var textF = Cord.TextField("text.app", "text.ui")
|
@StateObject var textF = Cord.TextField("text.app", "text.ui")
|
||||||
let test = Bus.Processor("text.ui", "joinAvailable", MeetupId.onlyAllowJoin)
|
let test = Bus.Processor("text.ui", "joinAvailable", MeetupId.onlyAllowJoin)
|
||||||
|
|||||||
Reference in New Issue
Block a user