Instantly share code, notes, and snippets.

Embed
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