Improve comments and correct iOS version check logic.

This commit is contained in:
David Langley
2021-08-25 15:17:05 +01:00
parent af2b3154cf
commit 73b448afb6
5 changed files with 39 additions and 30 deletions
@@ -17,9 +17,9 @@
import SwiftUI
/*
Renders the push rule settings that can enabled/disable.
Renders the push rule settings that can be enabled/disable.
Also renders an optional bottom section
(Used in the case of keywords for the keyword chips and input).
(used in the case of keywords, for the keyword chips and input).
*/
@available(iOS 14.0, *)
struct NotificationSettings<BottomSection: View>: View {
@@ -60,7 +60,10 @@ struct NotificationSettings_Previews: PreviewProvider {
ForEach(NotificationSettingsScreen.allCases) { screen in
NavigationView {
NotificationSettings(
viewModel: NotificationSettingsViewModel(notificationSettingsService: MockNotificationSettingsService.example, ruleIds: screen.pushRules)
viewModel: NotificationSettingsViewModel(
notificationSettingsService: MockNotificationSettingsService.example,
ruleIds: screen.pushRules
)
)
.navigationBarTitleDisplayMode(.inline)
}