@FocusState private var isFocused: Bool
@State private var text = "Tap, touch and hold, or swipe left to rename"
var body: some View {
TextField(text: $text) {
Text("Tap, touch and hold, or swipe left to rename")
}.focused($isFocused)
RenameButton()
.swipeActions(edge: .trailing) {
RenameButton()
}.contextMenu {
RenameButton()
}.renameAction {
isFocused = true
}
}