Note Sharing, distributing updates

This commit is contained in:
2025-10-09 23:12:34 +02:00
parent 87753865e2
commit d7497e2614
7 changed files with 216 additions and 23 deletions
+8 -1
View File
@@ -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()