diff --git a/src/Cord.ReadOnly.swift b/src/Cord.Receive.swift similarity index 87% rename from src/Cord.ReadOnly.swift rename to src/Cord.Receive.swift index ccb7560..94d5aef 100644 --- a/src/Cord.ReadOnly.swift +++ b/src/Cord.Receive.swift @@ -1,7 +1,7 @@ import Combine extension Cord { - final class ReadOnly: ObservableObject { + final class Receive: ObservableObject { @Published var value: T var subscriptions = [AnyCancellable]() diff --git a/src/V.swift b/src/V.swift index 3b3e4d5..90da3ca 100644 --- a/src/V.swift +++ b/src/V.swift @@ -1,7 +1,7 @@ import SwiftUI 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 textF = Cord.TextField("text.app", "text.ui") let test = Bus.Processor("text.ui", "joinAvailable", MeetupId.onlyAllowJoin)