-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a693443
commit 5e7c1e1
Showing
11 changed files
with
545 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+2.33 KB
(100%)
...odeproj/project.xcworkspace/xcuserdata/memz233.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// CrashReporterView.swift | ||
// BAGen | ||
// | ||
// Created by memz233 on 2023/10/5. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct CrashReporterView: View { | ||
var body: some View { | ||
ScrollView { | ||
VStack { | ||
Text("SwiftArchive 似乎在上次运行中出现了问题") | ||
.font(.system(size: 22, weight: .bold)) | ||
Text("以下是上次的错误信息:") | ||
.font(.system(size: 20)) | ||
ScrollView { | ||
Text(UserDefaults.standard.string(forKey: "CrashData")!) | ||
} | ||
.frame(maxHeight: 200) | ||
Button(action: { | ||
UserDefaults.standard.removeObject(forKey: "CrashData") | ||
nowScene = .Intro | ||
}, label: { | ||
Text("返回首页") | ||
}) | ||
} | ||
} | ||
} | ||
} | ||
|
||
#Preview { | ||
CrashReporterView() | ||
} |
Oops, something went wrong.