@@ -11,24 +11,24 @@ import UIKit
11
11
// MARK: - Layout Style
12
12
public var DefaultKeyboardLayoutStyle = KeyboardLayoutStyle (
13
13
topPadding: 10 ,
14
- bottomPadding: 5 ,
15
- rowPadding: 13 ,
14
+ bottomPadding: 4 ,
15
+ rowPadding: 12 ,
16
16
backgroundColor: UIColor ( red: 208.0 / 255.0 , green: 213.0 / 255.0 , blue: 219.0 / 255.0 , alpha: 1 ) )
17
17
18
18
// MARK: - Row Style
19
19
public var DefaultKeyboardRowStyle = KeyboardRowStyle (
20
- leadingPadding: 5 ,
21
- trailingPadding: 5 ,
20
+ leadingPadding: 3 ,
21
+ trailingPadding: 3 ,
22
22
buttonsPadding: 6 )
23
23
24
24
public var DefaultKeyboardSecondRowStyle = KeyboardRowStyle (
25
- leadingPadding: 20 ,
26
- trailingPadding: 20 ,
25
+ leadingPadding: 22 ,
26
+ trailingPadding: 22 ,
27
27
buttonsPadding: 6 )
28
28
29
29
public var DefaultKeyboardChildRowStyle = KeyboardRowStyle (
30
- leadingPadding: 10 ,
31
- trailingPadding: 10 ,
30
+ leadingPadding: 12 ,
31
+ trailingPadding: 12 ,
32
32
buttonsPadding: 6 )
33
33
34
34
// MARK: - Button Style
@@ -139,7 +139,7 @@ public enum DefaultKeyboardLayout {
139
139
KeyboardButton (
140
140
type: . Image( UIImage ( named: toggled ? " shiftToggled " : " shiftToggledOnce " , inBundle: NSBundle ( forClass: DefaultKeyboard . self) , compatibleWithTraitCollection: nil ) ) ,
141
141
style: DefaultKeyboardShiftButtonStyle,
142
- width: . Relative( percent: 0.13 ) ,
142
+ width: . Relative( percent: 0.115 ) ,
143
143
identifier: toggled ? DefaultKeyboardIdentifier . ShiftToggled. rawValue : DefaultKeyboardIdentifier . ShiftToggledOnce. rawValue) ,
144
144
KeyboardRow (
145
145
style: DefaultKeyboardChildRowStyle,
@@ -156,7 +156,7 @@ public enum DefaultKeyboardLayout {
156
156
KeyboardButton (
157
157
type: . Image( UIImage ( named: " backspace " , inBundle: NSBundle ( forClass: DefaultKeyboard . self) , compatibleWithTraitCollection: nil ) ) ,
158
158
style: DefaultKeyboardBackspaceButtonStyle,
159
- width: . Relative( percent: 0.13 ) ,
159
+ width: . Relative( percent: 0.115 ) ,
160
160
identifier: DefaultKeyboardIdentifier . Backspace. rawValue) ,
161
161
]
162
162
) ,
@@ -166,12 +166,12 @@ public enum DefaultKeyboardLayout {
166
166
KeyboardButton (
167
167
type: . Text( " 123 " ) ,
168
168
style: DefaultKeyboardNumbersButtonStyle,
169
- width: . Relative( percent: 0.13 ) ,
169
+ width: . Relative( percent: 0.115 ) ,
170
170
identifier: DefaultKeyboardIdentifier . Numbers. rawValue) ,
171
171
KeyboardButton (
172
172
type: . Image( UIImage ( named: " globe " , inBundle: NSBundle ( forClass: DefaultKeyboard . self) , compatibleWithTraitCollection: nil ) ) ,
173
173
style: DefaultKeyboardGlobeButtonStyle,
174
- width: . Static ( width : 40 ) ,
174
+ width: . Relative ( percent : 0.115 ) ,
175
175
identifier: DefaultKeyboardIdentifier . Globe. rawValue) ,
176
176
KeyboardButton (
177
177
type: . Text( " space " ) ,
@@ -180,7 +180,7 @@ public enum DefaultKeyboardLayout {
180
180
KeyboardButton (
181
181
type: . Text( " return " ) ,
182
182
style: DefaultKeyboardReturnButtonStyle,
183
- width: . Relative( percent: 0.2 ) ,
183
+ width: . Relative( percent: 0.18 ) ,
184
184
identifier: DefaultKeyboardIdentifier . Return. rawValue) ,
185
185
]
186
186
) ,
@@ -227,7 +227,7 @@ public enum DefaultKeyboardLayout {
227
227
KeyboardButton (
228
228
type: . Image( UIImage ( named: " shift " , inBundle: NSBundle ( forClass: DefaultKeyboard . self) , compatibleWithTraitCollection: nil ) ) ,
229
229
style: DefaultKeyboardShiftButtonStyle,
230
- width: . Relative( percent: 0.13 ) ,
230
+ width: . Relative( percent: 0.115 ) ,
231
231
identifier: DefaultKeyboardIdentifier . Shift. rawValue) ,
232
232
KeyboardRow (
233
233
style: DefaultKeyboardChildRowStyle,
@@ -244,7 +244,7 @@ public enum DefaultKeyboardLayout {
244
244
KeyboardButton (
245
245
type: . Image( UIImage ( named: " backspace " , inBundle: NSBundle ( forClass: DefaultKeyboard . self) , compatibleWithTraitCollection: nil ) ) ,
246
246
style: DefaultKeyboardBackspaceButtonStyle,
247
- width: . Relative( percent: 0.13 ) ,
247
+ width: . Relative( percent: 0.115 ) ,
248
248
identifier: DefaultKeyboardIdentifier . Backspace. rawValue) ,
249
249
]
250
250
) ,
@@ -254,12 +254,12 @@ public enum DefaultKeyboardLayout {
254
254
KeyboardButton (
255
255
type: . Text( " 123 " ) ,
256
256
style: DefaultKeyboardNumbersButtonStyle,
257
- width: . Relative( percent: 0.13 ) ,
257
+ width: . Relative( percent: 0.115 ) ,
258
258
identifier: DefaultKeyboardIdentifier . Numbers. rawValue) ,
259
259
KeyboardButton (
260
260
type: . Image( UIImage ( named: " globe " , inBundle: NSBundle ( forClass: DefaultKeyboard . self) , compatibleWithTraitCollection: nil ) ) ,
261
261
style: DefaultKeyboardGlobeButtonStyle,
262
- width: . Static ( width : 40 ) ,
262
+ width: . Relative ( percent : 0.115 ) ,
263
263
identifier: DefaultKeyboardIdentifier . Globe. rawValue) ,
264
264
KeyboardButton (
265
265
type: . Text( " space " ) ,
@@ -268,7 +268,7 @@ public enum DefaultKeyboardLayout {
268
268
KeyboardButton (
269
269
type: . Text( " return " ) ,
270
270
style: DefaultKeyboardReturnButtonStyle,
271
- width: . Relative( percent: 0.2 ) ,
271
+ width: . Relative( percent: 0.18 ) ,
272
272
identifier: DefaultKeyboardIdentifier . Return. rawValue) ,
273
273
]
274
274
) ,
@@ -316,7 +316,7 @@ public enum DefaultKeyboardLayout {
316
316
KeyboardButton (
317
317
type: . Text( " #+= " ) ,
318
318
style: DefaultKeyboardNumbersButtonStyle,
319
- width: . Relative( percent: 0.13 ) ,
319
+ width: . Relative( percent: 0.115 ) ,
320
320
identifier: DefaultKeyboardIdentifier . Symbols. rawValue) ,
321
321
KeyboardRow (
322
322
style: DefaultKeyboardChildRowStyle,
@@ -331,7 +331,7 @@ public enum DefaultKeyboardLayout {
331
331
KeyboardButton (
332
332
type: . Image( UIImage ( named: " backspace " , inBundle: NSBundle ( forClass: DefaultKeyboard . self) , compatibleWithTraitCollection: nil ) ) ,
333
333
style: DefaultKeyboardBackspaceButtonStyle,
334
- width: . Relative( percent: 0.13 ) ,
334
+ width: . Relative( percent: 0.115 ) ,
335
335
identifier: DefaultKeyboardIdentifier . Backspace. rawValue) ,
336
336
]
337
337
) ,
@@ -341,12 +341,12 @@ public enum DefaultKeyboardLayout {
341
341
KeyboardButton (
342
342
type: . Text( " ABC " ) ,
343
343
style: DefaultKeyboardNumbersButtonStyle,
344
- width: . Relative( percent: 0.13 ) ,
344
+ width: . Relative( percent: 0.115 ) ,
345
345
identifier: DefaultKeyboardIdentifier . Letters. rawValue) ,
346
346
KeyboardButton (
347
347
type: . Image( UIImage ( named: " globe " , inBundle: NSBundle ( forClass: DefaultKeyboard . self) , compatibleWithTraitCollection: nil ) ) ,
348
348
style: DefaultKeyboardGlobeButtonStyle,
349
- width: . Static ( width : 40 ) ,
349
+ width: . Relative ( percent : 0.115 ) ,
350
350
identifier: DefaultKeyboardIdentifier . Globe. rawValue) ,
351
351
KeyboardButton (
352
352
type: . Text( " space " ) ,
@@ -355,7 +355,7 @@ public enum DefaultKeyboardLayout {
355
355
KeyboardButton (
356
356
type: . Text( " return " ) ,
357
357
style: DefaultKeyboardReturnButtonStyle,
358
- width: . Relative( percent: 0.2 ) ,
358
+ width: . Relative( percent: 0.18 ) ,
359
359
identifier: DefaultKeyboardIdentifier . Return. rawValue) ,
360
360
]
361
361
) ,
@@ -403,7 +403,7 @@ public enum DefaultKeyboardLayout {
403
403
KeyboardButton (
404
404
type: . Text( " 123 " ) ,
405
405
style: DefaultKeyboardNumbersButtonStyle,
406
- width: . Relative( percent: 0.13 ) ,
406
+ width: . Relative( percent: 0.115 ) ,
407
407
identifier: DefaultKeyboardIdentifier . Numbers. rawValue) ,
408
408
KeyboardRow (
409
409
style: DefaultKeyboardChildRowStyle,
@@ -418,7 +418,7 @@ public enum DefaultKeyboardLayout {
418
418
KeyboardButton (
419
419
type: . Image( UIImage ( named: " backspace " , inBundle: NSBundle ( forClass: DefaultKeyboard . self) , compatibleWithTraitCollection: nil ) ) ,
420
420
style: DefaultKeyboardBackspaceButtonStyle,
421
- width: . Relative( percent: 0.13 ) ,
421
+ width: . Relative( percent: 0.115 ) ,
422
422
identifier: DefaultKeyboardIdentifier . Backspace. rawValue) ,
423
423
]
424
424
) ,
@@ -428,12 +428,12 @@ public enum DefaultKeyboardLayout {
428
428
KeyboardButton (
429
429
type: . Text( " ABC " ) ,
430
430
style: DefaultKeyboardNumbersButtonStyle,
431
- width: . Relative( percent: 0.13 ) ,
431
+ width: . Relative( percent: 0.115 ) ,
432
432
identifier: DefaultKeyboardIdentifier . Letters. rawValue) ,
433
433
KeyboardButton (
434
434
type: . Image( UIImage ( named: " globe " , inBundle: NSBundle ( forClass: DefaultKeyboard . self) , compatibleWithTraitCollection: nil ) ) ,
435
435
style: DefaultKeyboardGlobeButtonStyle,
436
- width: . Static ( width : 40 ) ,
436
+ width: . Relative ( percent : 0.115 ) ,
437
437
identifier: DefaultKeyboardIdentifier . Globe. rawValue) ,
438
438
KeyboardButton (
439
439
type: . Text( " space " ) ,
@@ -442,7 +442,7 @@ public enum DefaultKeyboardLayout {
442
442
KeyboardButton (
443
443
type: . Text( " return " ) ,
444
444
style: DefaultKeyboardReturnButtonStyle,
445
- width: . Relative( percent: 0.2 ) ,
445
+ width: . Relative( percent: 0.18 ) ,
446
446
identifier: DefaultKeyboardIdentifier . Return. rawValue) ,
447
447
]
448
448
) ,
0 commit comments