Skip to content

Instantly share code, notes, and snippets.

@soxjke soxjke/AppEvent.swift
Last active Oct 30, 2017

What would you like to do?
import Foundation
enum AppEvent {
case locationPermissionResult(success: Bool)
case locationRequest
case locationResult(latitude: Double, longitude: Double, timestamp: TimeInterval, error: Error?)
case geopositionRequest
case geopositionResult(geoposition: Geoposition, error: Error?)
case weatherRequest
case weatherResult(current: Weather, forecast: [Weather], error: Error?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.