Use the editor toolbar role on iOS 26 instead of left aligning the header by frame. (#4647)

The weird back button animation doesn't happen anymore 🥳
This commit is contained in:
Doug
2025-10-22 11:36:14 +01:00
committed by GitHub
parent c73bbeb970
commit 31bcedcc7f
9 changed files with 29 additions and 14 deletions

View File

@@ -40,6 +40,7 @@ struct JoinRoomScreen: View {
.alert(item: $context.alertInfo)
.background()
.backgroundStyle(.compound.bgCanvasDefault)
.toolbarRole(RoomHeaderView.toolbarRole)
.navigationBarTitleDisplayMode(.inline)
.toolbar { toolbar }
.shouldScrollOnKeyboardDidShow(focus == .knockMessage, to: Focus.knockMessage)