Last active
January 23, 2018 21:47
-
-
Save fabiothiroki/7760e664daca5b22da0e1539b388a45b to your computer and use it in GitHub Desktop.
User Location Service Mock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct UserLocationServiceMock: UserLocationDatasource { | |
let location = CLLocation.init(latitude: -23.5666151, longitude: -46.6463977) | |
func getUserLocation() -> Observable<CLLocation> { | |
return Observable.from(optional: location) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment