mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 06:06:57 +02:00
28 lines
885 B
Swift
28 lines
885 B
Swift
//
|
|
// Copyright 2022-2024 New Vector Ltd.
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
// Please see LICENSE files in the repository root for full details.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct MapCreditsActionSheet {
|
|
// Open URL action
|
|
let openURL: (URL) -> Void
|
|
|
|
// Map credits action sheet
|
|
var sheet: ActionSheet {
|
|
ActionSheet(title: Text(VectorL10n.locationSharingMapCreditsTitle),
|
|
buttons: [
|
|
.default(Text("© MapTiler")) {
|
|
openURL(URL(string: "https://www.maptiler.com/copyright/")!)
|
|
},
|
|
.default(Text("© OpenStreetMap")) {
|
|
openURL(URL(string: "https://www.openstreetmap.org/copyright")!)
|
|
},
|
|
.cancel()
|
|
])
|
|
}
|
|
}
|