Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kitlangton/omentextfield
A better TextField for SwiftUI. A growing, multiline, auto-focusable TextField supporting bindable focus.
https://github.com/kitlangton/omentextfield
Last synced: 10 days ago
JSON representation
A better TextField for SwiftUI. A growing, multiline, auto-focusable TextField supporting bindable focus.
- Host: GitHub
- URL: https://github.com/kitlangton/omentextfield
- Owner: kitlangton
- License: mit
- Created: 2020-12-23T18:43:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-30T15:17:38.000Z (over 3 years ago)
- Last Synced: 2024-10-11T08:44:38.177Z (26 days ago)
- Language: Swift
- Size: 3.93 MB
- Stars: 123
- Watchers: 7
- Forks: 17
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://omen.cards)—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
- [x] iOS support (using UITextView)
- [x] macOS support (using NSTextView)
- [x] Add overrideable `returnKey` for iOS
- [x] Add `onCommit` callback