Skip to content

How to get coordinate - simplest solution #32

Answered by iliya-pro
iliya-pro asked this question in Q&A
Discussion options

You must be logged in to vote

Found solution in tests:

    do {
        let location = try await locationManager.requestLocation()
        
        switch location {
        case .didUpdateLocations(let locations):
            print(locations)
            XCTAssert(true)
        default:
            XCTAssert(false, "Something went wrong")
        }
        
    } catch {
        XCTAssert(false, error.localizedDescription)
    }

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gre4ixin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant