Fill in payments by scanning a QR code or picking one from photos
This commit is contained in:
@@ -19,8 +19,15 @@ struct SeedBox: Identifiable {
|
||||
struct RootView: View {
|
||||
@EnvironmentObject private var model: AppModel
|
||||
@Environment(\.scenePhase) private var scenePhase
|
||||
@State private var route: Route = ProcessInfo.processInfo.arguments.contains("-koinsScreenAccounts")
|
||||
? .accounts : .home
|
||||
@State private var route: Route = RootView.initialRoute
|
||||
|
||||
private static var initialRoute: Route {
|
||||
let arguments = ProcessInfo.processInfo.arguments
|
||||
if arguments.contains("-koinsScreenAccounts") { return .accounts }
|
||||
if arguments.contains("-koinsScreenSend") { return .send }
|
||||
if arguments.contains("-koinsScreenReceive") { return .receive }
|
||||
return .home
|
||||
}
|
||||
@State private var seedBox: SeedBox?
|
||||
|
||||
var body: some View {
|
||||
|
||||
Reference in New Issue
Block a user