Skip to content

Commit

Permalink
Lowers OS target to 14
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonjames71 committed Nov 4, 2024
1 parent b275116 commit 29d092f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NiceCopy.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 14.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.marlonraskin.NiceCopy;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -419,6 +420,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 14.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.marlonraskin.NiceCopy;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
9 changes: 7 additions & 2 deletions NiceCopy/NiceCopyApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ struct NiceCopyApp: App {
SettingsView()
}
.windowResizability(.contentSize)
.windowLevel(.floating)
.defaultLaunchBehavior(.suppressed)
.modifiers { scene in
if #available(macOS 15.0, *) {
scene
.windowLevel(.floating)
.defaultLaunchBehavior(.suppressed)
}
}
}
}
22 changes: 22 additions & 0 deletions NiceCopy/OptionalModifier.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// OptionalModifier.swift
// NiceCopy
//
// Created by Marlon Raskin on 2024-11-04.
//

import SwiftUI

extension View {
@ViewBuilder
func modifiers<Content: View>(@ViewBuilder content: @escaping (Self) -> Content) -> some View {
content(self)
}
}

extension Scene {
@SceneBuilder
func modifiers<Content: Scene>(@SceneBuilder content: @escaping (Self) -> Content) -> some Scene {
content(self)
}
}

0 comments on commit 29d092f

Please sign in to comment.