Skip to content

Commit bd9d012

Browse files
authored
Create README.md
1 parent 1b0b301 commit bd9d012

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Usage
2+
3+
```
4+
@State private var text: String = ""
5+
@FocusState private var isActive: Bool
6+
7+
YYTextFieldWithKeyboard {
8+
TextField("", text: $text)
9+
.padding(.horizontal, 10)
10+
.padding(.vertical, 6)
11+
.frame(width: 150)
12+
.focused($isActive)
13+
} keyboard: {
14+
CustomNumberKeyboard(text: $text, isActive: $isActive, config: .default)
15+
}
16+
```

0 commit comments

Comments
 (0)