@@ -4,10 +4,10 @@ import CoreNFC
44@available ( iOS 15 . 0 , * )
55public class NFCReader : NSObject , ObservableObject , NFCNDEFReaderSessionDelegate {
66
7- public var startAlert = String ( localized: " Hold your iPhone near the tag. " , bundle: . module)
8- public var endAlert = " "
9- public var msg = String ( localized: " Scan to read or Edit here to write... " , bundle: . module)
10- public var raw = String ( localized: " Raw Data available after scan. " , bundle: . module)
7+ @ Published public var startAlert = String ( localized: " Hold your iPhone near the tag. " , bundle: . module)
8+ @ Published public var endAlert = " "
9+ @ Published public var msg = String ( localized: " Scan to read or Edit here to write... " , bundle: . module)
10+ @ Published public var raw = String ( localized: " Raw Data available after scan. " , bundle: . module)
1111
1212 public var session : NFCNDEFReaderSession ?
1313
@@ -50,12 +50,11 @@ public class NFCReader: NSObject, ObservableObject, NFCNDEFReaderSessionDelegate
5050}
5151
5252public class NFCWriter : NSObject , ObservableObject , NFCNDEFReaderSessionDelegate {
53-
54- public var startAlert = String ( localized: " Hold your iPhone near the tag. " , bundle: . module)
55- public var endAlert = " "
56- public var msg = " "
57- public var type = " T "
58-
53+ @Published public var startAlert = String ( localized: " Hold your iPhone near the tag. " , bundle: . module)
54+ @Published public var endAlert = " "
55+ @Published public var msg = " "
56+ @Published public var type = " T "
57+
5958 public var session : NFCNDEFReaderSession ?
6059
6160 public func write( ) {
0 commit comments