Add screenshot generator

This commit is contained in:
世界 committed 2026-01-08 16:13:20 +08:00
1 parent 264c4eed81
commit 6b589cb771
57 files changed
+1931 -109

No files matched your search

@@ -98,7 +98,7 @@ public struct CoreView: View {
}
private nonisolated func loadSettings() async {
if ApplicationLibrary.inPreview {
if Variant.screenshotMode {
await MainActor.run {
version = "<redacted>"
dataSize = LibboxFormatBytes(1000 * 1000 * 10)
@@ -12,7 +12,7 @@ final class SettingViewModel: BaseViewModel {
nonisolated func checkTaiwanFlagAvailability() async {
let available: Bool
if ApplicationLibrary.inPreview {
if Variant.screenshotMode {
available = true
} else {
available = !DeviceCensorship.isChinaDevice()