Score 0–10 SwiftUI radio button
Pickers
A net-promoter row coloured red to green. Our first pick: a pickers radio group with 5 inputs your SwiftUI code can drive, in a 755-byte file.
SwiftUI · Radio groups · Updated November 2026
Need a SwiftUI custom radio button with real motion? These five animated radio buttons play in SwiftUI from one .exode file, chosen from the 50 in Exode Galleries. Each one is live below: try it, then open it in ExodeUI and drop it into your SwiftUI app with the code at the end.
Pickers
A net-promoter row coloured red to green. Our first pick: a pickers radio group with 5 inputs your SwiftUI code can drive, in a 755-byte file.
Motion
A small moon orbits the chosen dot. It is a motion radio group with 5 inputs your SwiftUI code can drive, in a 720-byte file.
Pickers
Options around a circle with a pointer. It is a pickers radio group with 5 inputs your SwiftUI code can drive, in a 722-byte file.
Cards
Price cards; the chosen plan lifts and gets a border. It is a cards radio group with 5 inputs your SwiftUI code can drive, in a 723-byte file.
Pickers
Stars up to the choice fill in. It is a pickers radio group with 5 inputs your SwiftUI code can drive, in a 722-byte file.
Use it as a checklist when you compare the picks above. Each one is a native radio group in ExodeUI, so whatever is missing you change in the editor instead of rewriting SwiftUI code.
| # | Design | Category | Inputs | File |
|---|---|---|---|---|
| 1 | Score 0–10 | Pickers | 5 | 755 B |
| 2 | Orbit | Motion | 5 | 720 B |
| 3 | Radial Picker | Pickers | 5 | 722 B |
| 4 | Plan Cards | Cards | 5 | 723 B |
| 5 | Star Rating | Pickers | 5 | 722 B |
The code for #1, Score 0–10, with its real file and input names. Every pick works the same way.
.package(url: "https://github.com/exodeUI/exode-swift.git", from: "7.6.0")import SwiftUI
import ExodeUI
struct RdNpsView: View {
@StateObject private var controller = ExodeUICanvasController()
var body: some View {
VStack {
ExodeUICanvas(bexodeAsset: "rd-nps", controller: controller)
.aspectRatio(2.07, contentMode: .fit)
.onAppear { controller.setInputText("Score 0–10 · Selected", "Hello") }
}
}
}Pick a design here, open it in ExodeUI and change it, then export a .bexode file. Install ExodeUI (.package(url: "https://github.com/exodeUI/exode-swift.git", from: "7.6.0")) and load the file with the runtime; the code below uses the first pick’s real file and input names. The motion, states and springs live in the file, so your SwiftUI code only sets and reads inputs.
It depends on the job: Score 0–10 (pickers), Orbit (motion), Radial Picker (pickers) cover different styles. These five are our picks from the 50 radio groups in Exode Galleries, chosen for range, for how much is wired to inputs and for how well they read small. They are not a survey of other libraries.
They replace it where you want custom motion. Keep the built-in one where the platform default is right, and use an ExodeUI file where the radio button is part of your brand.
Yes. They come from Radio Group Studio, built into the ExodeUI editor and included in the free Community plan. The SwiftUI runtime is free too.
Yes. Open one in ExodeUI and every part is a native layer: colours, type, motion and logic. The input names stay the same, so your code keeps working.
Free to start. Every studio behind this library is built into the editor, and everything it makes stays native and editable.
Try ExodeUI for free