@@ -581,6 +581,11 @@ class KeyboardViewController: UIInputViewController {
581
581
conjugateAlternateView = true
582
582
} else if controllerLanguage == " Russian " && ruConjugationState == . past {
583
583
conjugateAlternateView = true
584
+ } else if
585
+ commandState == . selectCaseConjugation
586
+ && controllerLanguage == " German "
587
+ && [ . accusative, . dative, . genitive] . contains ( deCaseConjugationState) {
588
+ conjugateAlternateView = true
584
589
} else {
585
590
conjugateAlternateView = false
586
591
}
@@ -629,22 +634,22 @@ class KeyboardViewController: UIInputViewController {
629
634
activateBtn ( btn: conjugateShiftRight)
630
635
631
636
if conjugateAlternateView == false {
632
- for elem in get3x2ConjButtons ( ) {
633
- activateBtn ( btn: elem )
637
+ for btn in get3x2ConjButtons ( ) {
638
+ activateBtn ( btn: btn )
634
639
}
635
640
636
- for elem in get2x2ConjButtons ( ) {
637
- deactivateBtn ( btn: elem )
641
+ for btn in get2x2ConjButtons ( ) {
642
+ deactivateBtn ( btn: btn )
638
643
}
639
644
}
640
645
641
646
if conjugateAlternateView == true {
642
- for elem in get3x2ConjButtons ( ) {
643
- deactivateBtn ( btn: elem )
647
+ for btn in get3x2ConjButtons ( ) {
648
+ deactivateBtn ( btn: btn )
644
649
}
645
650
646
- for elem in get2x2ConjButtons ( ) {
647
- activateBtn ( btn: elem )
651
+ for btn in get2x2ConjButtons ( ) {
652
+ activateBtn ( btn: btn )
648
653
}
649
654
}
650
655
}
@@ -732,7 +737,7 @@ class KeyboardViewController: UIInputViewController {
732
737
svSetConjugationLabels ( )
733
738
}
734
739
735
- // Assign labels that have been set by SetConjugationLabels functions .
740
+ // Assign labels that have been set by SetConjugationLabels function .
736
741
conjugateLblFPS. setTitle ( " " + labelFPS, for: . normal)
737
742
conjugateLblSPS. setTitle ( " " + labelSPS, for: . normal)
738
743
conjugateLblTPS. setTitle ( " " + labelTPS, for: . normal)
@@ -772,7 +777,7 @@ class KeyboardViewController: UIInputViewController {
772
777
func setCaseConjugationState( ) {
773
778
// Set the view title and its labels.
774
779
var conjugationTitleFxn : ( ) -> String = deGetCaseConjugationTitle
775
- var conjugationLabelsFxn : ( ) -> Void = deSetConjugationLabels
780
+ var conjugationLabelsFxn : ( ) -> Void = deSetCaseConjugationLabels
776
781
var conjugationsFxn : ( ) -> Void = deSetCaseConjugations
777
782
778
783
if controllerLanguage == " Russian " {
@@ -785,16 +790,26 @@ class KeyboardViewController: UIInputViewController {
785
790
conjugationLabelsFxn ( )
786
791
conjugationsFxn ( )
787
792
788
- // Assign labels that have been set by SetConjugationLabels functions .
793
+ // Assign labels that have been set by SetCaseConjugationLabels function .
789
794
conjugateLblFPS. setTitle ( " " + labelFPS, for: . normal)
790
795
conjugateLblSPS. setTitle ( " " + labelSPS, for: . normal)
791
796
conjugateLblTPS. setTitle ( " " + labelTPS, for: . normal)
792
797
conjugateLblFPP. setTitle ( " " + labelFPP, for: . normal)
793
798
conjugateLblSPP. setTitle ( " " + labelSPP, for: . normal)
794
799
conjugateLblTPP. setTitle ( " " + labelTPP, for: . normal)
795
800
796
- allConjugations = [ conjFPS, conjSPS, conjTPS, conjFPP, conjSPP, conjTPP]
797
- allConjugationBtns = get3x2ConjButtons ( )
801
+ conjugateLblTL. setTitle ( " " + labelTopLeft, for: . normal)
802
+ conjugateLblTR. setTitle ( " " + labelTopRight, for: . normal)
803
+ conjugateLblBL. setTitle ( " " + labelBottomLeft, for: . normal)
804
+ conjugateLblBR. setTitle ( " " + labelBottomRight, for: . normal)
805
+
806
+ if controllerLanguage == " German " && ![ . accusative, . dative, . genitive] . contains ( deCaseConjugationState) {
807
+ allConjugations = [ conjFPS, conjSPS, conjTPS, conjFPP, conjSPP, conjTPP]
808
+ allConjugationBtns = get3x2ConjButtons ( )
809
+ } else {
810
+ allConjugations = [ conjTopLeft, conjTopRight, conjBottomLeft, conjBottomRight]
811
+ allConjugationBtns = get2x2ConjButtons ( )
812
+ }
798
813
799
814
// Populate conjugation view buttons.
800
815
for index in 0 ..< allConjugations. count {
@@ -1377,52 +1392,42 @@ class KeyboardViewController: UIInputViewController {
1377
1392
1378
1393
case " firstPersonSingular " :
1379
1394
returnConjugation ( keyPressed: sender, requestedTense: conjFPS)
1380
- autoActionState = . suggest
1381
1395
loadKeys ( )
1382
1396
1383
1397
case " secondPersonSingular " :
1384
1398
returnConjugation ( keyPressed: sender, requestedTense: conjSPS)
1385
- autoActionState = . suggest
1386
1399
loadKeys ( )
1387
1400
1388
1401
case " thirdPersonSingular " :
1389
1402
returnConjugation ( keyPressed: sender, requestedTense: conjTPS)
1390
- autoActionState = . suggest
1391
1403
loadKeys ( )
1392
1404
1393
1405
case " firstPersonPlural " :
1394
1406
returnConjugation ( keyPressed: sender, requestedTense: conjFPP)
1395
- autoActionState = . suggest
1396
1407
loadKeys ( )
1397
1408
1398
1409
case " secondPersonPlural " :
1399
1410
returnConjugation ( keyPressed: sender, requestedTense: conjSPP)
1400
- autoActionState = . suggest
1401
1411
loadKeys ( )
1402
1412
1403
1413
case " thirdPersonPlural " :
1404
1414
returnConjugation ( keyPressed: sender, requestedTense: conjTPP)
1405
- autoActionState = . suggest
1406
1415
loadKeys ( )
1407
1416
1408
1417
case " conjugateTopLeft " :
1409
1418
returnConjugation ( keyPressed: sender, requestedTense: conjTopLeft)
1410
- autoActionState = . suggest
1411
1419
loadKeys ( )
1412
1420
1413
1421
case " conjugateTopRight " :
1414
1422
returnConjugation ( keyPressed: sender, requestedTense: conjTopRight)
1415
- autoActionState = . suggest
1416
1423
loadKeys ( )
1417
1424
1418
1425
case " conjugateBottomLeft " :
1419
1426
returnConjugation ( keyPressed: sender, requestedTense: conjBottomLeft)
1420
- autoActionState = . suggest
1421
1427
loadKeys ( )
1422
1428
1423
1429
case " conjugateBottomRight " :
1424
1430
returnConjugation ( keyPressed: sender, requestedTense: conjBottomRight)
1425
- autoActionState = . suggest
1426
1431
loadKeys ( )
1427
1432
1428
1433
case " AutoAction1 " :
0 commit comments