@@ -10,29 +10,29 @@ import UIKit
10
10
11
11
// MARK: - Layout Style
12
12
public var CustomKeyboardLayoutStyle = KeyboardLayoutStyle (
13
- topPadding: 10 ,
14
- bottomPadding: 4 ,
15
- rowPadding: 12 ,
16
13
backgroundColor: UIColor ( red: 208.0 / 255.0 , green: 213.0 / 255.0 , blue: 219.0 / 255.0 , alpha: 1 ) )
17
14
18
15
// MARK: - Row Style
19
- public var CustomKeyboardRowStyle = KeyboardRowStyle (
20
- leadingPadding: 3 ,
21
- trailingPadding: 3 ,
22
- buttonsPadding: 6 )
16
+ public var CustomKeyboardRowStyle = KeyboardRowStyle ( )
23
17
24
18
public var CustomKeyboardSecondRowStyle = KeyboardRowStyle (
25
19
leadingPadding: 22 ,
20
+ leadingPaddingLandscape: 30 ,
26
21
trailingPadding: 22 ,
27
- buttonsPadding: 6 )
22
+ trailingPaddingLandscape: 30 )
23
+
24
+ public var CustomKeyboardThirdRowStyle = KeyboardRowStyle (
25
+ bottomPadding: 10 ,
26
+ bottomPaddingLandscape: 6 ,
27
+ buttonsPadding: 15 )
28
28
29
29
public var CustomKeyboardChildRowStyle = KeyboardRowStyle (
30
- leadingPadding: 12 ,
31
- trailingPadding: 12 ,
32
- buttonsPadding: 6 )
30
+ leadingPadding: 0 ,
31
+ trailingPadding: 0 )
33
32
34
33
// MARK: - Button Style
35
34
public var CustomKeyboardKeyButtonStyle = KeyboardButtonStyle ( showsPopup: true )
35
+ public var CustomKeyboardLowercaseKeyButtonStyle = KeyboardButtonStyle ( showsPopup: true , textOffsetY: - 2 )
36
36
37
37
public var CustomKeyboardSpaceButtonStyle = KeyboardButtonStyle (
38
38
font: UIFont . systemFontOfSize ( 15 ) ,
@@ -134,7 +134,7 @@ public enum CustomKeyboardLayout {
134
134
]
135
135
) ,
136
136
KeyboardRow (
137
- style: CustomKeyboardRowStyle ,
137
+ style: CustomKeyboardThirdRowStyle ,
138
138
characters: [
139
139
KeyboardButton (
140
140
type: . Image( UIImage ( named: toggled ? " shiftToggled " : " shiftToggledOnce " , inBundle: NSBundle ( forClass: CustomKeyboard . self) , compatibleWithTraitCollection: nil ) ) ,
@@ -195,34 +195,34 @@ public enum CustomKeyboardLayout {
195
195
KeyboardRow (
196
196
style: CustomKeyboardRowStyle,
197
197
characters: [
198
- KeyboardButton ( type: . Key( " q " ) , style: CustomKeyboardKeyButtonStyle ) ,
199
- KeyboardButton ( type: . Key( " w " ) , style: CustomKeyboardKeyButtonStyle ) ,
200
- KeyboardButton ( type: . Key( " e " ) , style: CustomKeyboardKeyButtonStyle ) ,
201
- KeyboardButton ( type: . Key( " r " ) , style: CustomKeyboardKeyButtonStyle ) ,
202
- KeyboardButton ( type: . Key( " t " ) , style: CustomKeyboardKeyButtonStyle ) ,
203
- KeyboardButton ( type: . Key( " y " ) , style: CustomKeyboardKeyButtonStyle ) ,
204
- KeyboardButton ( type: . Key( " u " ) , style: CustomKeyboardKeyButtonStyle ) ,
205
- KeyboardButton ( type: . Key( " i " ) , style: CustomKeyboardKeyButtonStyle ) ,
206
- KeyboardButton ( type: . Key( " o " ) , style: CustomKeyboardKeyButtonStyle ) ,
207
- KeyboardButton ( type: . Key( " p " ) , style: CustomKeyboardKeyButtonStyle ) ,
198
+ KeyboardButton ( type: . Key( " q " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
199
+ KeyboardButton ( type: . Key( " w " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
200
+ KeyboardButton ( type: . Key( " e " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
201
+ KeyboardButton ( type: . Key( " r " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
202
+ KeyboardButton ( type: . Key( " t " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
203
+ KeyboardButton ( type: . Key( " y " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
204
+ KeyboardButton ( type: . Key( " u " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
205
+ KeyboardButton ( type: . Key( " i " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
206
+ KeyboardButton ( type: . Key( " o " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
207
+ KeyboardButton ( type: . Key( " p " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
208
208
]
209
209
) ,
210
210
KeyboardRow (
211
211
style: CustomKeyboardSecondRowStyle,
212
212
characters: [
213
- KeyboardButton ( type: . Key( " a " ) , style: CustomKeyboardKeyButtonStyle ) ,
214
- KeyboardButton ( type: . Key( " s " ) , style: CustomKeyboardKeyButtonStyle ) ,
215
- KeyboardButton ( type: . Key( " d " ) , style: CustomKeyboardKeyButtonStyle ) ,
216
- KeyboardButton ( type: . Key( " f " ) , style: CustomKeyboardKeyButtonStyle ) ,
217
- KeyboardButton ( type: . Key( " g " ) , style: CustomKeyboardKeyButtonStyle ) ,
218
- KeyboardButton ( type: . Key( " h " ) , style: CustomKeyboardKeyButtonStyle ) ,
219
- KeyboardButton ( type: . Key( " j " ) , style: CustomKeyboardKeyButtonStyle ) ,
220
- KeyboardButton ( type: . Key( " k " ) , style: CustomKeyboardKeyButtonStyle ) ,
221
- KeyboardButton ( type: . Key( " l " ) , style: CustomKeyboardKeyButtonStyle ) ,
213
+ KeyboardButton ( type: . Key( " a " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
214
+ KeyboardButton ( type: . Key( " s " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
215
+ KeyboardButton ( type: . Key( " d " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
216
+ KeyboardButton ( type: . Key( " f " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
217
+ KeyboardButton ( type: . Key( " g " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
218
+ KeyboardButton ( type: . Key( " h " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
219
+ KeyboardButton ( type: . Key( " j " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
220
+ KeyboardButton ( type: . Key( " k " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
221
+ KeyboardButton ( type: . Key( " l " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
222
222
]
223
223
) ,
224
224
KeyboardRow (
225
- style: CustomKeyboardRowStyle ,
225
+ style: CustomKeyboardThirdRowStyle ,
226
226
characters: [
227
227
KeyboardButton (
228
228
type: . Image( UIImage ( named: " shift " , inBundle: NSBundle ( forClass: CustomKeyboard . self) , compatibleWithTraitCollection: nil ) ) ,
@@ -232,13 +232,13 @@ public enum CustomKeyboardLayout {
232
232
KeyboardRow (
233
233
style: CustomKeyboardChildRowStyle,
234
234
characters: [
235
- KeyboardButton ( type: . Key( " z " ) , style: CustomKeyboardKeyButtonStyle ) ,
236
- KeyboardButton ( type: . Key( " x " ) , style: CustomKeyboardKeyButtonStyle ) ,
237
- KeyboardButton ( type: . Key( " c " ) , style: CustomKeyboardKeyButtonStyle ) ,
238
- KeyboardButton ( type: . Key( " v " ) , style: CustomKeyboardKeyButtonStyle ) ,
239
- KeyboardButton ( type: . Key( " b " ) , style: CustomKeyboardKeyButtonStyle ) ,
240
- KeyboardButton ( type: . Key( " n " ) , style: CustomKeyboardKeyButtonStyle ) ,
241
- KeyboardButton ( type: . Key( " m " ) , style: CustomKeyboardKeyButtonStyle ) ,
235
+ KeyboardButton ( type: . Key( " z " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
236
+ KeyboardButton ( type: . Key( " x " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
237
+ KeyboardButton ( type: . Key( " c " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
238
+ KeyboardButton ( type: . Key( " v " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
239
+ KeyboardButton ( type: . Key( " b " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
240
+ KeyboardButton ( type: . Key( " n " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
241
+ KeyboardButton ( type: . Key( " m " ) , style: CustomKeyboardLowercaseKeyButtonStyle ) ,
242
242
]
243
243
) ,
244
244
KeyboardButton (
@@ -311,7 +311,7 @@ public enum CustomKeyboardLayout {
311
311
]
312
312
) ,
313
313
KeyboardRow (
314
- style: CustomKeyboardRowStyle ,
314
+ style: CustomKeyboardThirdRowStyle ,
315
315
characters: [
316
316
KeyboardButton (
317
317
type: . Text( " #+= " ) ,
@@ -398,7 +398,7 @@ public enum CustomKeyboardLayout {
398
398
]
399
399
) ,
400
400
KeyboardRow (
401
- style: CustomKeyboardRowStyle ,
401
+ style: CustomKeyboardThirdRowStyle ,
402
402
characters: [
403
403
KeyboardButton (
404
404
type: . Text( " 123 " ) ,
0 commit comments