From 86c5d1e7a9d2da3094cc8ef9d92b68551554ba88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Wed, 27 Dec 2023 12:47:48 +0300 Subject: [PATCH] d --- src/{Cord.ReadOnly.swift => Cord.Receive.swift} | 2 +- src/V.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/{Cord.ReadOnly.swift => Cord.Receive.swift} (87%) 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)