Skip to content

Instantly share code, notes, and snippets.

@fabiothiroki
Last active January 23, 2018 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabiothiroki/7760e664daca5b22da0e1539b388a45b to your computer and use it in GitHub Desktop.
Save fabiothiroki/7760e664daca5b22da0e1539b388a45b to your computer and use it in GitHub Desktop.
User Location Service Mock
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