r/iOSProgramming • Beginner • Oct 01 '26

Question Best place for a 'Next' button?

Post image

What's the most appropriate location for a next button here, in keeping with the Apple UI consistency and ecosystem?

Mockup:

NavigationStack {
	List {
		Section {
			TextField("Email Address", text: $email)
		} header: {
			VStack(alignment: .leading, spacing: 4) {
				Text("Sign In")
					.frame(maxWidth: .infinity, alignment: .leading)
					.padding(.top, 5)
					.font(.largeTitle)
					.bold()
					.foregroundColor(.primary) // Override default gray header color
				Text("Subtitle")//school.name)
					.frame(maxWidth: .infinity, alignment: .leading)
					.font(.title3)
					.foregroundColor(.secondary)
			}
			.listRowInsets(EdgeInsets())
			.textCase(nil) // Prevents SwiftUI from forcing ALL CAPS on the header
			.padding(.bottom, 10)
		}
	}
	.toolbar {
		ToolbarItem(placement:.confirmationAction) {
			NavigationLink() {
				VerificationCodeView(email: email.lowercased(), school: school, resend: { })
			} label: {
				Text("Next").padding(5)
			}
			.buttonStyle(.borderedProminent)
		}
	}
}
61 Upvotes

43 comments sorted by

View all comments

1

u/EthanRDoesMC Oct 06 '26

Okay, yay! Here’s my bread and butter kinda problem.

Toolbar principle is always a good place, but for forms specifically where the user will have just finished typing, their thumbs will be on the keyboard, and so it’s good to have your button above it.

My go-to is something like

.safeAreaBar(edge: .bottom) {
    Button { action }
    label: { Text("Next").bold().padding() // make it big }
        .buttonSizing(.flexible)
        .buttonStyle(.glassProminent)
        .padding() // gives the button some breathing room especially wrt the keyboard, you might prefer safeAreaPadding over this though
}

Very much current Apple big button style

1

u/EthanRDoesMC Oct 06 '26

oops I posted this from my own client and I haven’t added editing yet, uh, the comment after the first padding should be after the closing curly :P