Skip to main content

SwiftUI · Text fields · Updated November 2026

5 best animated custom SwiftUI text fields

Need a SwiftUI custom text field with real motion? These five animated text fields play in SwiftUI from one .exode file, chosen from the 32 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.

  1. 1Cipher Decrypt
  2. 2Conic Orbit Beam
  3. 3Pill-to-Bar Search
  4. 4Notch Cutout
  5. 5PIN Cubes, Flying Caret
1

Cipher Decrypt SwiftUI text field

Micro-Metrics & Passwords

Each character shows random symbols for 150ms before settling into the typed letter. Our first pick: a micro-metrics & passwords text field with 9 inputs your SwiftUI code can drive, in a 803-byte file.

4

Notch Cutout SwiftUI text field

Label & Frame Morphing

The label starts as a full-size placeholder; on focus it shrinks and carves a notch out of the top border. It is a label & frame morphing text field with 8 inputs your SwiftUI code can drive, in a 763-byte file.

What makes a good SwiftUI text field

  • Real typing, not a fake caret.
  • Focus, error and valid states your validation can drive.
  • A label that stays readable when the field is filled.
  • Error motion that is clear but short.

Use it as a checklist when you compare the picks above. Each one is a native text field in ExodeUI, so whatever is missing you change in the editor instead of rewriting SwiftUI code.

Side by side

#DesignCategoryInputsFile
1Cipher DecryptMicro-Metrics & Passwords9803 B
2Conic Orbit BeamReactive Border & Light9836 B
3Pill-to-Bar SearchShape-Shifting Containers8767 B
4Notch CutoutLabel & Frame Morphing8763 B
5PIN Cubes, Flying CaretSegmented & Stepped8761 B

Use it in SwiftUI

The code for #1, Cipher Decrypt, 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 ScrambleView: View {
    @StateObject private var controller = ExodeUICanvasController()

    var body: some View {
        VStack {
            ExodeUICanvas(bexodeAsset: "scramble", controller: controller)
                .aspectRatio(2.36, contentMode: .fit)
                .onAppear { controller.setInputText("Cipher Decrypt · Value", "Hello") }
            Button("Submitted") { controller.fireTrigger("Cipher Decrypt · Submitted") }
        }
    }
}

Questions

How do I make a custom animated text field in SwiftUI?

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.

What is the best SwiftUI custom text field?

It depends on the job: Cipher Decrypt (micro-metrics & passwords), Conic Orbit Beam (reactive border & light), Pill-to-Bar Search (shape-shifting containers) cover different styles. These five are our picks from the 32 text fields 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.

Can I use these text fields with SwiftUI’s built-in text field?

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 text field is part of your brand.

Are they free?

Yes. They come from Input Box Studio, built into the ExodeUI editor and included in the free Community plan. The SwiftUI runtime is free too.

Can I change them?

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.

Related searches

Make your own in ExodeUI

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
ExodeUI

EXODEUI DESKTOP

A little space for good ideas.

Choose your platform to get the official ExodeUI installer.

Looking for Intel Mac or other builds? Explore the web studio or check all download options.

Prefer the browser? Try for free in your browser →