Note Sharing, distributing updates
This commit is contained in:
@@ -32,9 +32,16 @@ struct NoteEditorScreen: View {
|
||||
}
|
||||
.sheet(isPresented: $showManageMembers) {
|
||||
NavigationStack {
|
||||
ManageMembersView(noteAdvertiser: noteAdvertiser)
|
||||
ManageMembersView(
|
||||
noteAdvertiser: noteAdvertiser,
|
||||
noteTitle: note.name,
|
||||
noteContent: $noteContent
|
||||
)
|
||||
}
|
||||
}
|
||||
.onReceive(noteAdvertiser.noteChangesEmitter) { updatedNote in
|
||||
self.noteContent = updatedNote
|
||||
}
|
||||
.onAppear {
|
||||
noteContent = try! String(contentsOf: note.path, encoding: .utf8)
|
||||
noteAdvertiser.startServer()
|
||||
|
||||
Reference in New Issue
Block a user