Post

It always puts the button on the leading edge. And Apple positions X button on the trailing edge. bsky.app/profile/alpe...

Axel Le Pennec@alpennec.com

In SwiftUI (UIKit too?), there is the semantic cancellationAction ToolbarItemPlacement. “In iOS, iPadOS, tvOS, and watchOS, the system places cancellationAction items on the leading edge of the navigation bar.” Maybe there should be a closeAction too? developer.apple.com/documentatio...

So, we have 2 cases here. 1. You have cancel(X) and done(checkmark) buttons. Then you place cancel on leading edge and done on trailing edge. 2. You have only cancel(X) and you display it on the trailing edge as a single possible action.

No replies yet.