Skip to content

Commit a0805de

Browse files
committed
Quick Fix on macOS
1 parent 2d9ccb0 commit a0805de

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Demo/Demo.xcodeproj/project.pbxproj

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
/* Begin PBXBuildFile section */
1010
3A80CEB52DB4BD4B006BDD0A /* SwiftGlass in Frameworks */ = {isa = PBXBuildFile; productRef = 3A80CEB42DB4BD4B006BDD0A /* SwiftGlass */; };
11-
3A80CEEC2DB4C145006BDD0A /* Watch Watch App.app in Embed Watch Content */ = {isa = PBXBuildFile; fileRef = 3A80CECC2DB4C144006BDD0A /* Watch Watch App.app */; platformFilters = (ios, macos, xros, ); settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
11+
3A80CEEC2DB4C145006BDD0A /* Watch Watch App.app in Embed Watch Content */ = {isa = PBXBuildFile; fileRef = 3A80CECC2DB4C144006BDD0A /* Watch Watch App.app */; platformFilter = ios; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
1212
3A80CEFB2DB4C1E6006BDD0A /* SwiftGlass in Frameworks */ = {isa = PBXBuildFile; productRef = 3A80CEFA2DB4C1E6006BDD0A /* SwiftGlass */; };
1313
/* End PBXBuildFile section */
1414

@@ -520,11 +520,7 @@
520520
};
521521
3A80CEEB2DB4C145006BDD0A /* PBXTargetDependency */ = {
522522
isa = PBXTargetDependency;
523-
platformFilters = (
524-
ios,
525-
macos,
526-
xros,
527-
);
523+
platformFilter = ios;
528524
target = 3A80CECB2DB4C144006BDD0A /* Watch Watch App */;
529525
targetProxy = 3A80CEEA2DB4C145006BDD0A /* PBXContainerItemProxy */;
530526
};
@@ -814,6 +810,7 @@
814810
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
815811
CODE_SIGN_STYLE = Automatic;
816812
CURRENT_PROJECT_VERSION = 1;
813+
DEVELOPMENT_TEAM = 9PAHLTG8AD;
817814
ENABLE_PREVIEWS = YES;
818815
GENERATE_INFOPLIST_FILE = YES;
819816
INFOPLIST_KEY_CFBundleDisplayName = Watch;
@@ -842,6 +839,7 @@
842839
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
843840
CODE_SIGN_STYLE = Automatic;
844841
CURRENT_PROJECT_VERSION = 1;
842+
DEVELOPMENT_TEAM = 9PAHLTG8AD;
845843
ENABLE_PREVIEWS = YES;
846844
GENERATE_INFOPLIST_FILE = YES;
847845
INFOPLIST_KEY_CFBundleDisplayName = Watch;

Demo/Demo/DemoApp.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ struct DemoApp: App {
1313
WindowGroup {
1414
Basic()
1515
}
16+
#if os(macOS)
17+
.windowStyle(.hiddenTitleBar)
18+
#endif
1619
}
1720
}

Demo/Demo/Samples/Basic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ struct Basic: View {
1212
var body: some View {
1313
ZStack {
1414

15-
#if !os(visionOS) && !os(watchOS)
15+
#if !os(visionOS) && !os(watchOS) && !os(macOS)
1616
background
1717
#endif
1818

0 commit comments

Comments
 (0)