mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
MapCreditsView: Update view and add tap action closure.
This commit is contained in:
parent
8e7cd20a96
commit
0d0fe729e4
1 changed files with 11 additions and 3 deletions
|
@ -26,12 +26,20 @@ struct MapCreditsView: View {
|
|||
|
||||
// MARK: Public
|
||||
|
||||
var action: (() -> Void)?
|
||||
|
||||
var body: some View {
|
||||
HStack {
|
||||
Link("© MapTiler", destination: URL(string: "https://www.maptiler.com/copyright/")!)
|
||||
Link("© OpenStreetMap contributors", destination: URL(string: "https://www.openstreetmap.org/copyright")!)
|
||||
Spacer()
|
||||
Button {
|
||||
action?()
|
||||
} label: {
|
||||
Text(VectorL10n.locationSharingMapCreditsTitle)
|
||||
.font(theme.fonts.footnote)
|
||||
.foregroundColor(theme.colors.accent)
|
||||
}
|
||||
.padding(.horizontal)
|
||||
}
|
||||
.font(theme.fonts.caption1)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue