Add screenshot generator

This commit is contained in:
世界
2026-01-08 16:13:20 +08:00
parent 264c4eed81
commit 6b589cb771
57 changed files with 1931 additions and 109 deletions
@@ -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()