diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-01-31 00:52:09 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-01-31 00:52:09 -0600 |
commit | 1b6df3a665605faa4c8b02ec31e7433caad1b0b1 (patch) | |
tree | 876b3ab2ab45980480d6e6bf2b5696708b72f25e /iosApp/iosApp/Shared/Utils.swift | |
parent | df95aae61affe160257cd276c5c342a9c18b0d94 (diff) | |
download | etbsa-trackermap-mobile-1b6df3a665605faa4c8b02ec31e7433caad1b0b1.tar.gz etbsa-trackermap-mobile-1b6df3a665605faa4c8b02ec31e7433caad1b0b1.tar.bz2 etbsa-trackermap-mobile-1b6df3a665605faa4c8b02ec31e7433caad1b0b1.zip |
Added WhirlyGlobe-Maply .xcframework and implemented map layer switch
Diffstat (limited to 'iosApp/iosApp/Shared/Utils.swift')
-rw-r--r-- | iosApp/iosApp/Shared/Utils.swift | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/iosApp/iosApp/Shared/Utils.swift b/iosApp/iosApp/Shared/Utils.swift new file mode 100644 index 0000000..cacf49b --- /dev/null +++ b/iosApp/iosApp/Shared/Utils.swift @@ -0,0 +1,19 @@ +// +// Utils.swift +// iosApp +// +// Created by Iván on 30/01/22. +// Copyright © 2022 orgName. All rights reserved. +// + +import Foundation +import CryptoKit + +class Utils { + static func MD5(string: String) -> String { + let digest = Insecure.MD5.hash(data: string.data(using: .utf8) ?? Data()) + return digest.map { + String(format: "%02hhx", $0) + }.joined() + } +} |