summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-22 05:28:58 -0800
committerFuwn <[email protected]>2025-02-22 05:28:58 -0800
commit75f211440f912dff50a92dfb7f89fb855d788b21 (patch)
tree8a64e4ff6b015f4a3433405068f190fd7f3a2f26
parentfeat: Development commit (diff)
downloadsora-testing-75f211440f912dff50a92dfb7f89fb855d788b21.tar.xz
sora-testing-75f211440f912dff50a92dfb7f89fb855d788b21.zip
feat: Development commit
-rw-r--r--.swiftlint.yml1
-rw-r--r--Sora/SoraApp.swift19
2 files changed, 6 insertions, 14 deletions
diff --git a/.swiftlint.yml b/.swiftlint.yml
index 5080ba0..0b28a12 100644
--- a/.swiftlint.yml
+++ b/.swiftlint.yml
@@ -19,7 +19,6 @@ disabled_rules:
- indentation_width
- multiple_closures_with_trailing_closure
- no_magic_numbers
- - one_declaration_per_file
- opening_brace
- required_deinit
- trailing_comma
diff --git a/Sora/SoraApp.swift b/Sora/SoraApp.swift
index 70a01b5..aa5ac60 100644
--- a/Sora/SoraApp.swift
+++ b/Sora/SoraApp.swift
@@ -19,17 +19,10 @@ struct SoraApp: App {
}
}
-struct SoraApp_Previews: PreviewProvider {
- static var previews: some View {
- MainView()
- .environmentObject(Settings())
- .previewDevice(PreviewDevice(rawValue: "iPhone 16 Pro Max"))
- .previewDisplayName("iPhone")
-
- MainView()
- .environmentObject(Settings())
- .previewDevice(PreviewDevice(rawValue: "My Mac"))
- .previewDisplayName("Mac")
- .previewLayout(.fixed(width: 750, height: 800))
- }
+#Preview {
+ MainView()
+ .environmentObject(Settings())
+ #if os(macOS)
+ .frame(width: 736, height: 736)
+ #endif
}