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 39babbd
Showing 1 changed file with 12 additions and 4 deletions.
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 39babbd

Please sign in to comment.