Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CaptionCollector: ObservableObject {
- @Published var caption: String = ""
- }
- @ObservedObject var capCollect = CaptionCollector()
- //...
- Text(self.capCollect.caption)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement