From f90aa40005e0fb1aa56a9152dbed6efec3b7e0c6 Mon Sep 17 00:00:00 2001 From: Alexander Romanov Date: Sat, 17 Jun 2023 00:37:10 +0300 Subject: [PATCH] Fix back button --- .../SettingsKit/Views/About/AboutView.swift | 12 ++++++------ .../Views/Apperance/AppearanceSettingView.swift | 12 ++++++------ .../Notifications/NotificationsSettingsView.swift | 4 +--- .../Views/Security/SecuritySettingsView.swift | 6 +----- .../Views/iCloud/iCloudSettingsView.swift | 6 +----- 5 files changed, 15 insertions(+), 25 deletions(-) diff --git a/Sources/OversizeKit/SettingsKit/Views/About/AboutView.swift b/Sources/OversizeKit/SettingsKit/Views/About/AboutView.swift index da31a2e..c6589a8 100644 --- a/Sources/OversizeKit/SettingsKit/Views/About/AboutView.swift +++ b/Sources/OversizeKit/SettingsKit/Views/About/AboutView.swift @@ -68,12 +68,12 @@ import SwiftUI } .leadingBar { /* - if !isPortrait, verticalSizeClass == .regular { - EmptyView() - } else { - BarButton(.back) - } - */ + if !isPortrait, verticalSizeClass == .regular { + EmptyView() + } else { + BarButton(.back) + } + */ BarButton(.back) } .backgroundSecondary() diff --git a/Sources/OversizeKit/SettingsKit/Views/Apperance/AppearanceSettingView.swift b/Sources/OversizeKit/SettingsKit/Views/Apperance/AppearanceSettingView.swift index 88fad60..b2eb527 100644 --- a/Sources/OversizeKit/SettingsKit/Views/Apperance/AppearanceSettingView.swift +++ b/Sources/OversizeKit/SettingsKit/Views/Apperance/AppearanceSettingView.swift @@ -70,12 +70,12 @@ import SwiftUI } .leadingBar { /* - if !isPortrait, verticalSizeClass == .regular { - EmptyView() - } else { - BarButton(.back) - } - */ + if !isPortrait, verticalSizeClass == .regular { + EmptyView() + } else { + BarButton(.back) + } + */ BarButton(.back) } .backgroundSecondary() diff --git a/Sources/OversizeKit/SettingsKit/Views/Notifications/NotificationsSettingsView.swift b/Sources/OversizeKit/SettingsKit/Views/Notifications/NotificationsSettingsView.swift index 5883ef5..c72f575 100644 --- a/Sources/OversizeKit/SettingsKit/Views/Notifications/NotificationsSettingsView.swift +++ b/Sources/OversizeKit/SettingsKit/Views/Notifications/NotificationsSettingsView.swift @@ -23,9 +23,7 @@ import SwiftUI .surfaceContentRowInsets() } .leadingBar { - - BarButton(.back) - + BarButton(.back) } .backgroundSecondary() } diff --git a/Sources/OversizeKit/SettingsKit/Views/Security/SecuritySettingsView.swift b/Sources/OversizeKit/SettingsKit/Views/Security/SecuritySettingsView.swift index 9aa15f3..1dc6a68 100644 --- a/Sources/OversizeKit/SettingsKit/Views/Security/SecuritySettingsView.swift +++ b/Sources/OversizeKit/SettingsKit/Views/Security/SecuritySettingsView.swift @@ -29,11 +29,7 @@ import SwiftUI .surfaceContentRowInsets() } .leadingBar { - if !isPortrait, verticalSizeClass == .regular { - EmptyView() - } else { - BarButton(.back) - } + BarButton(.back) } .backgroundSecondary() } diff --git a/Sources/OversizeKit/SettingsKit/Views/iCloud/iCloudSettingsView.swift b/Sources/OversizeKit/SettingsKit/Views/iCloud/iCloudSettingsView.swift index 0689bdf..e2e5371 100644 --- a/Sources/OversizeKit/SettingsKit/Views/iCloud/iCloudSettingsView.swift +++ b/Sources/OversizeKit/SettingsKit/Views/iCloud/iCloudSettingsView.swift @@ -23,11 +23,7 @@ import SwiftUI .surfaceContentRowInsets() } .leadingBar { - if !isPortrait, verticalSizeClass == .regular { - EmptyView() - } else { - BarButton(.back) - } + BarButton(.back) } .backgroundSecondary() }