Download this file
| 1 | import EquipoKit |
| 2 | import SwiftUI |
| 3 | |
| 4 | @main |
| 5 | struct EquipoPhoneApp: App { |
| 6 | @UIApplicationDelegateAdaptor(EquipoPhoneDelegate.self) private var delegate |
| 7 | var body: some Scene { |
| 8 | WindowGroup { |
| 9 | #if DEBUG |
| 10 | if ProcessInfo.processInfo.environment["EQUIPO_NOTIFICATION_FIXTURE"] != nil { NotificationFixture() } |
| 11 | else if ProcessInfo.processInfo.environment["EQUIPO_SHARE_FIXTURE"] != nil { |
| 12 | #if targetEnvironment(simulator) |
| 13 | ShareFixture() |
| 14 | #else |
| 15 | PhoneRoot(model: delegate.model) |
| 16 | #endif |
| 17 | } |
| 18 | else if ProcessInfo.processInfo.environment["EQUIPO_SCREENSHOT_FIXTURE"] != nil { AttachmentsFixture() } |
| 19 | else if ProcessInfo.processInfo.environment["EQUIPO_PREVIEW_FIXTURE"] != nil { PreviewFixture() } |
| 20 | else if ProcessInfo.processInfo.environment["EQUIPO_NEEDS_FIXTURE"] != nil { PhoneNeedsFixture() } |
| 21 | else if ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] != nil { TaskViewFixture() } |
| 22 | else if ProcessInfo.processInfo.environment["EQUIPO_STOPPED_FIXTURE"] != nil { StoppedWorkFixture() } |
| 23 | else { PhoneRoot(model: delegate.model) } |
| 24 | #else |
| 25 | PhoneRoot(model: delegate.model) |
| 26 | #endif |
| 27 | } |
| 28 | } |
| 29 | } |
| 30 | |