mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
Add bottom sheet modifier
This commit is contained in:
@@ -32,7 +32,7 @@ struct UserSessionOverview: View {
|
||||
viewModel.send(viewAction: .viewSessionDetails)
|
||||
},
|
||||
onLearnMoreAction: {
|
||||
|
||||
viewModel.showBottomSheet = true
|
||||
}
|
||||
)
|
||||
.padding(16)
|
||||
@@ -82,6 +82,11 @@ struct UserSessionOverview: View {
|
||||
}
|
||||
}
|
||||
.accentColor(theme.colors.accent)
|
||||
.bottomSheet(isPresented: $viewModel.showBottomSheet) {
|
||||
InfoView(title: "Verified sessions",
|
||||
descripion: "Further context on verified sessions. What do those mean, and how do they differ from unverified ones.\n\nWe could provide a link to an external reference resource for even more context.",
|
||||
action: .init(text: "GOT IT", action: { $viewModel.showBottomSheet.wrappedValue = false }))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user