Introducing a collection of SwiftUI components you copy into your app and make your own.
Inspired by @shadcn . Native on iPhone, iPad and Mac.
Free and open source.
@brkaydev@shadcn Yep, a bit. TextEditor has its own inset, so I padded the placeholder to match. The Mac needed extra care, since NSTextView has no inset, so I added 8pt around the editor there
SwiftUI doesn't ship a one-time code field, so this one is a single TextField underneath.
Digits fill the slots, backspace pulls the next ones back, and the slots grow to fit the row.
Inspired by @shadcn
SwiftUI already ships a loading state: .redacted(reason: .placeholder).
The same view turns into placeholder blocks, so nothing moves when the data arrives. No second layout to keep in sync.
Inspired by @shadcn
Sign in and sign up screens for SwiftUI, in light and dark.
A native Sign in with Apple button, email and password fields set up for AutoFill, one Swift file each to copy and make yours.
Inspired by @shadcn