Fill in payments by scanning a QR code or picking one from photos

This commit is contained in:
2026-09-20 02:00:52 +08:00
parent 399502cf72
commit c0903f4f02
8 changed files with 423 additions and 11 deletions
+9 -2
View File
@@ -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 {