mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 19:34:25 +02:00
Add dependency management, AvatarViewModel and placeholder rendering now in AvatarImage.
This commit is contained in:
@@ -90,8 +90,8 @@ struct RoomNotificationSettings_Previews: PreviewProvider {
|
||||
NavigationView {
|
||||
RoomNotificationSettings(viewModel: mockViewModel, presentedModally: true)
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
.theme(ThemeIdentifier.dark.theme)
|
||||
.addDependency(MockAvatarService.example)
|
||||
.theme(ThemeIdentifier.dark)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,6 @@ struct RoomNotificationSettingsHeader: View {
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct RoomNotificationSettingsHeader_Previews: PreviewProvider {
|
||||
static let image = UIImage(imageLiteralResourceName: "app_symbol")
|
||||
static let name = "Element"
|
||||
static var previews: some View {
|
||||
RoomNotificationSettingsHeader(avatarData: MockAvatarInput.example, displayName: name)
|
||||
|
||||
@@ -57,7 +57,8 @@ struct VectorForm_Previews: PreviewProvider {
|
||||
}
|
||||
VectorForm {
|
||||
FormPickerItem(title: "Item 1", selected: true)
|
||||
}.theme(ThemeIdentifier.dark.theme)
|
||||
}
|
||||
.theme(ThemeIdentifier.dark)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user