Skip to content

A better TextField for SwiftUI. A growing, multiline, auto-focusable TextField supporting bindable focus.

License

Notifications You must be signed in to change notification settings

benadamdev/OmenTextField

 
 

Repository files navigation

OmenTextField

A better TextField for SwiftUI. A growing, multiline, auto-focusable TextField supporting bindable focus.

This has been pulled out of my flashcard app, Omen—in case you need some help memorizing SwiftUI overloads 😜

Example

A simple example app is included in the OmenTextFieldExample subproject.

Installation with Swift Package Manager

You can add OmenTextField to an Xcode project by adding it as a package dependency.

  1. From the File menu, select Swift Packages › Add Package Dependency…
  2. Paste "https://github.com/kitlangton/OmenTextField" into the package repository URL text field
  3. Hit Enter!

To-do List

  • iOS support (using UITextView)
  • macOS support (using NSTextView)
  • Add overrideable returnKey for iOS
  • Add onCommit callback

About

A better TextField for SwiftUI. A growing, multiline, auto-focusable TextField supporting bindable focus.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%