mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 09:32:52 +02:00
MESSENGER-4008 add clickable copyright to staticlocationview
This commit is contained in:
+11
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user