From 95ff51dafd4dae0d7389574a2527e3589d0c67cc Mon Sep 17 00:00:00 2001 From: LK-Simon Date: Wed, 13 Jul 2022 14:10:09 +0200 Subject: [PATCH] 1.0.3 Need to make `Internal` methods `open` now that the code is in its own library --- Sources/Observable/ObservableThread.swift | 4 ++-- Sources/Observable/ObservableThreadSafeClass.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/Observable/ObservableThread.swift b/Sources/Observable/ObservableThread.swift index 43c0ca2..188db0e 100644 --- a/Sources/Observable/ObservableThread.swift +++ b/Sources/Observable/ObservableThread.swift @@ -112,13 +112,13 @@ open class ObservableThread: Thread, Observable, ObservableObject { self._observers.lock.signal() } - internal func notifyChange() { + open func notifyChange() { Task { await notifyChange() } } - internal func notifyChange() async { + open func notifyChange() async { await MainActor.run { objectWillChange.send() } diff --git a/Sources/Observable/ObservableThreadSafeClass.swift b/Sources/Observable/ObservableThreadSafeClass.swift index 30f87a4..9d51a89 100644 --- a/Sources/Observable/ObservableThreadSafeClass.swift +++ b/Sources/Observable/ObservableThreadSafeClass.swift @@ -112,13 +112,13 @@ open class ObservableThreadSafeClass: Observable, ObservableObject { self._observers.lock.signal() } - internal func notifyChange() { + open func notifyChange() { Task { await notifyChange() } } - internal func notifyChange() async { + open func notifyChange() async { await MainActor.run { objectWillChange.send() }