This commit is contained in:
Alfonso Grillo
2022-11-02 16:52:22 +01:00
parent d7f8aefdb0
commit 2045dfdaa0
3 changed files with 13 additions and 18 deletions
@@ -24,21 +24,19 @@ struct UserSessionsOverview: View {
private let maxOtherSessionsToDisplay = 5
var body: some View {
GeometryReader { _ in
VStack(alignment: .leading, spacing: 0) {
ScrollView {
if hasSecurityRecommendations {
securityRecommendationsSection
}
currentSessionsSection
if !viewModel.viewState.otherSessionsViewData.isEmpty {
otherSessionsSection
}
VStack(alignment: .leading, spacing: 0) {
ScrollView {
if hasSecurityRecommendations {
securityRecommendationsSection
}
currentSessionsSection
if !viewModel.viewState.otherSessionsViewData.isEmpty {
otherSessionsSection
}
.readableFrame()
}
.readableFrame()
}
.background(theme.colors.system.ignoresSafeArea())
.frame(maxHeight: .infinity)