vector-im/element-ios/issues/5298 - Improved error messages and moved map configuration to the BuildSettings

This commit is contained in:
Stefan Ceriu
2021-12-17 14:27:43 +02:00
committed by Stefan Ceriu
parent fe525e4559
commit 5a3bab92ec
16 changed files with 73 additions and 79 deletions
@@ -16,6 +16,7 @@
import Foundation
import SwiftUI
import Keys
@available(iOS 14.0, *)
enum MockLocationSharingScreenState: MockScreenState, CaseIterable {
@@ -26,7 +27,8 @@ enum MockLocationSharingScreenState: MockScreenState, CaseIterable {
}
var screenView: ([Any], AnyView) {
let viewModel = LocationSharingViewModel(accessToken: "bDAfUcrMPWTAB1KB38r6",
let mapURL = URL(string: "https://api.maptiler.com/maps/streets/style.json?key=" + RiotKeys().mapTilerAPIKey)!
let viewModel = LocationSharingViewModel(tileServerMapURL: mapURL,
avatarData: AvatarInput(mxContentUri: "", matrixItemId: "", displayName: "Alice"))
return ([viewModel],
AnyView(LocationSharingView(context: viewModel.context)