Fix the setting button's layout and animation on liquid glass

This commit is contained in:
Stefan Ceriu
2026-01-20 14:12:00 +02:00
committed by Stefan Ceriu
parent 0360db7924
commit 5577acac19
19 changed files with 35 additions and 39 deletions
+1 -5
View File
@@ -88,11 +88,7 @@ enum UserAvatarSizeOnScreen {
var value: CGFloat {
switch self {
case .chats, .spaces:
if #available(iOS 26, *) {
return 40
} else {
return 32
}
return 32
case .timeline:
return 32
case .readReceipt:
@@ -36,8 +36,8 @@ struct HomeScreen: View {
private var toolbar: some ToolbarContent {
ToolbarItem(placement: .navigationBarLeading) {
settingsButton
.buttonStyle(.borderless)
}
.backportSharedBackgroundVisibility(.hidden)
ToolbarItem(placement: .primaryAction) {
if #available(iOS 26, *) {
@@ -108,9 +108,9 @@ struct SpacesScreen: View {
.accessibilityIdentifier(A11yIdentifiers.homeScreen.userAvatar)
.compositingGroup()
}
.buttonStyle(.borderless)
.accessibilityLabel(L10n.commonSettings)
}
.backportSharedBackgroundVisibility(.hidden)
ToolbarItem(placement: .principal) {
// Hides the navigationTitle (which is set for the navigation stack label).