diff options
| -rw-r--r-- | .swiftlint.yml | 1 | ||||
| -rw-r--r-- | Sora/SoraApp.swift | 19 |
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 } |