Skip to content

Commit

Permalink
Fix back button
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed Jun 16, 2023
1 parent 06e57e2 commit f90aa40
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 25 deletions.
12 changes: 6 additions & 6 deletions Sources/OversizeKit/SettingsKit/Views/About/AboutView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ import SwiftUI
.surfaceContentRowInsets()
}
.leadingBar {

BarButton(.back)

BarButton(.back)
}
.backgroundSecondary()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ import SwiftUI
.surfaceContentRowInsets()
}
.leadingBar {
if !isPortrait, verticalSizeClass == .regular {
EmptyView()
} else {
BarButton(.back)
}
BarButton(.back)
}
.backgroundSecondary()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ import SwiftUI
.surfaceContentRowInsets()
}
.leadingBar {
if !isPortrait, verticalSizeClass == .regular {
EmptyView()
} else {
BarButton(.back)
}
BarButton(.back)
}
.backgroundSecondary()
}
Expand Down

0 comments on commit f90aa40

Please sign in to comment.