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 652093876a
commit f369a30a64
19 changed files with 35 additions and 39 deletions

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:

View File

@@ -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, *) {

View File

@@ -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).

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a6836c92e2c4d7a67aa39d51a82612a7831d64e8c68a0e8e9b7a0605d95f4787
size 196165
oid sha256:ef32916bc38748738e8b90862b19d9aca4d2d969fba00cec54116b37618724c0
size 196313

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d80389d5af6f4ce7d137b587db88504ba40f2573601afc3dc1a64df333c4d0aa
size 229132
oid sha256:17e3c1ae4de418af3c42fe4b43fb06aa95ace95c7243c5b724a4bce6f27637ae
size 229278