Add bottom sheet modifier

This commit is contained in:
Alfonso Grillo
2022-10-26 12:14:25 +02:00
parent c25ada3806
commit 98efc014c7
3 changed files with 40 additions and 3 deletions
@@ -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 }))
}
}
}