Coordinator stops (#207)

* Add `stop` method to `Coordinator`

* Use new stop method to cleanup room screen

* Call stop implicitly when removing a child coordinator

* Revert placeholder avatar font change

* Fix PR remarks
This commit is contained in:
ismailgulek
2022-09-23 15:04:35 +03:00
committed by GitHub
parent d7dad1353b
commit b03a02351a
19 changed files with 56 additions and 9 deletions
@@ -41,9 +41,6 @@ struct RoomScreen: View {
}
}
.alert(item: $context.alertInfo) { $0.alert }
.onDisappear {
context.send(viewAction: .viewDisappeared)
}
}
private func sendMessage() {
@@ -26,7 +26,8 @@ struct PlaceholderAvatarImage: View {
Text(textForImage)
.padding(4)
.foregroundColor(.white)
.font(.title2.bold())
.font(.system(size: 200).weight(.semibold))
.minimumScaleFactor(0.001)
}
.aspectRatio(1, contentMode: .fill)
}