Skip to content

Commit dc9e4cb

Browse files
committed
backport: fix brand icon size
Signed-off-by: 82Flex <[email protected]>
1 parent 9a2bd9a commit dc9e4cb

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

Reveil.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@
12991299
CODE_SIGN_ENTITLEMENTS = Reveil/Reveil.entitlements;
13001300
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
13011301
CODE_SIGN_STYLE = Automatic;
1302-
CURRENT_PROJECT_VERSION = 10;
1302+
CURRENT_PROJECT_VERSION = 11;
13031303
DEVELOPMENT_ASSET_PATHS = "";
13041304
DEVELOPMENT_TEAM = GXZ23M5TP2;
13051305
"ENABLE_HARDENED_RUNTIME[sdk=macosx*]" = YES;
@@ -1342,7 +1342,7 @@
13421342
CODE_SIGN_ENTITLEMENTS = Reveil/Reveil.entitlements;
13431343
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
13441344
CODE_SIGN_STYLE = Automatic;
1345-
CURRENT_PROJECT_VERSION = 10;
1345+
CURRENT_PROJECT_VERSION = 11;
13461346
DEVELOPMENT_ASSET_PATHS = "";
13471347
DEVELOPMENT_TEAM = GXZ23M5TP2;
13481348
"ENABLE_HARDENED_RUNTIME[sdk=macosx*]" = YES;

Reveil/Extensions/Brand.swift

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,18 @@ extension View {
1414
.navigationBarTitleDisplayMode(.inline)
1515
.toolbar {
1616
ToolbarItem(placement: .principal) {
17-
Image("IconShape")
18-
.resizable()
19-
.aspectRatio(contentMode: .fit)
20-
.foregroundColor(.accentColor)
17+
if #available(iOS 15.0, *) {
18+
Image("IconShape")
19+
.resizable()
20+
.aspectRatio(contentMode: .fit)
21+
.foregroundColor(.accentColor)
22+
} else {
23+
Image("IconShape")
24+
.resizable()
25+
.aspectRatio(contentMode: .fit)
26+
.foregroundColor(.accentColor)
27+
.frame(width: 44, height: 44)
28+
}
2129
}
2230
}
2331
}

0 commit comments

Comments
 (0)