Skip to content

Commit

Permalink
backport: fix brand icon size
Browse files Browse the repository at this point in the history
Signed-off-by: 82Flex <[email protected]>
  • Loading branch information
Lessica committed Jan 13, 2024
1 parent 9a2bd9a commit dc9e4cb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Reveil.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@
CODE_SIGN_ENTITLEMENTS = Reveil/Reveil.entitlements;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 10;
CURRENT_PROJECT_VERSION = 11;
DEVELOPMENT_ASSET_PATHS = "";
DEVELOPMENT_TEAM = GXZ23M5TP2;
"ENABLE_HARDENED_RUNTIME[sdk=macosx*]" = YES;
Expand Down Expand Up @@ -1342,7 +1342,7 @@
CODE_SIGN_ENTITLEMENTS = Reveil/Reveil.entitlements;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 10;
CURRENT_PROJECT_VERSION = 11;
DEVELOPMENT_ASSET_PATHS = "";
DEVELOPMENT_TEAM = GXZ23M5TP2;
"ENABLE_HARDENED_RUNTIME[sdk=macosx*]" = YES;
Expand Down
16 changes: 12 additions & 4 deletions Reveil/Extensions/Brand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,18 @@ extension View {
.navigationBarTitleDisplayMode(.inline)
.toolbar {
ToolbarItem(placement: .principal) {
Image("IconShape")
.resizable()
.aspectRatio(contentMode: .fit)
.foregroundColor(.accentColor)
if #available(iOS 15.0, *) {
Image("IconShape")
.resizable()
.aspectRatio(contentMode: .fit)
.foregroundColor(.accentColor)
} else {
Image("IconShape")
.resizable()
.aspectRatio(contentMode: .fit)
.foregroundColor(.accentColor)
.frame(width: 44, height: 44)
}
}
}
}
Expand Down

0 comments on commit dc9e4cb

Please sign in to comment.