Attractive FloatingTextField Using SwiftUI
Platform | Minimum Swift Version | Status |
---|---|---|
iOS 13.0+ | 5.0 | Tested |
import SwiftUI
@main
struct FloatingTextFieldApp: App {
@State var text: String = ""
var body: some Scene {
WindowGroup {
FloatingTextField(title: "Your Email Address", text: $text)
.frame(width: 350, height: 60, alignment: .center)
}
}
}
Feel free to share your ideas or any other problems. Pull requests are welcomed.
ViewMaker is released under an MIT license. See LICENSE for more information.