MESSENGER-4008 add clickable copyright to staticlocationview

This commit is contained in:
Frank Rotermund
2023-01-04 08:29:53 +01:00
parent 0e5570935d
commit de98fa3ea5
4 changed files with 67 additions and 1 deletions
@@ -22,6 +22,8 @@ struct StaticLocationView: View {
// MARK: Private
@Environment(\.theme) private var theme
@Environment(\.openURL) var openURL
@Environment(\.safeAreaInsets) private var safeAreaInsets
// MARK: Public
@@ -40,7 +42,15 @@ struct StaticLocationView: View {
userLocation: Binding.constant(nil),
mapCenterCoordinate: Binding.constant(nil),
errorSubject: viewModel.viewState.errorSubject)
MapCreditsView()
MapCreditsView(action: {
viewModel.send(viewAction: .mapCreditsDidTap)
})
.padding(.bottom, 10.0 + safeAreaInsets.bottom)
.actionSheet(isPresented: $viewModel.showMapCreditsSheet) {
MapCreditsActionSheet(openURL: { url in
openURL(url)
}).sheet
}
}
.ignoresSafeArea(.all, edges: [.bottom])
.toolbar {