Interactive previews iPhone
RenameButton
A button that triggers a standard rename action
Platform Compatibility
iOS 16.0+ iPadOS 16.0+ macOS 13.0+ watchOS 9.0+ tvOS 16.0+ visionOS 1.0+
Tags
SwiftUI Code
@State private var text = "foo"
var body: some View {
HStack {
Text(text)
RenameButton()
.padding(.leading)
.renameAction {
text = "bar"
}
}
}Found an issue or have a suggestion?
Created: June 3, 2025Updated: December 27, 2025
More Button Components
View allGlass Button Styles
A button style that applies glass border artwork based on the button’s context
Explore Other Components
Browse allSearch Tab Role
On Liquid Glass, this tab is placed in its own group. In left-to-right (LTR) layouts, it will always appear on the right side of the TabView.
ToolbarItem Shared Background Visibility
Controls the visibility of the glass background effect on items in the toolbar. In certain contexts, such as the navigation bar on iOS and the window toolbar on macOS, toolbar items will be given a glass background effect that is shared with other items in the same logical grouping