Skip to content

DimensionDev/TextFieldWithKeyboard

Repository files navigation

Install

.package(url: "https://github.com/DimensionDev/TextFieldWithKeyboard", exact: "0.0.1")

Usage

@State private var text: String = ""
@FocusState private var isActive: Bool

YYTextFieldWithKeyboard {
    TextField("", text: $text)
        .padding(.horizontal, 10)
        .padding(.vertical, 6)
        .frame(width: 150)
        .focused($isActive)
} keyboard: {
    CustomNumberKeyboard(text: $text, isActive: $isActive, config: .default)
}

About

a custom keyboard view wrapper

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages