diff --git a/Nexd/Nexd/Resources/de.lproj/Localizable.strings b/Nexd/Nexd/Resources/de.lproj/Localizable.strings index 93e66ef8..23c76592 100644 --- a/Nexd/Nexd/Resources/de.lproj/Localizable.strings +++ b/Nexd/Nexd/Resources/de.lproj/Localizable.strings @@ -36,6 +36,7 @@ "error_message_unknown" = "Unbekannter Fehler"; "error_message_user_detail_field_missing" = "Bitte ausfüllen"; "error_title" = "Fehler"; +"error_message_user_terms_of_use_consent_missing" = "Bitte den Nutzungsbedingungen zustimmen"; "helper_call_overview_screen_title" = "Offene Anrufe:"; "helper_request_detail_button_accept" = "Mach ich!"; "helper_request_detail_button_accepted" = "Anfrage bereits angenommen"; diff --git a/Nexd/Nexd/Resources/en.lproj/Localizable.strings b/Nexd/Nexd/Resources/en.lproj/Localizable.strings index dd6bb5e4..9753de1e 100644 --- a/Nexd/Nexd/Resources/en.lproj/Localizable.strings +++ b/Nexd/Nexd/Resources/en.lproj/Localizable.strings @@ -35,6 +35,7 @@ "error_message_registration_validation_failed" = "User registration failed. Please make sure you input valid data."; "error_message_unknown" = "Unknown error"; "error_message_user_detail_field_missing" = "Please fill in"; +"error_message_user_terms_of_use_consent_missing" = "You need to agree to the terms of use"; "error_title" = "Error"; "helper_call_overview_screen_title" = "Open calls:"; "helper_request_detail_button_accept" = "Will do!"; diff --git a/Nexd/Nexd/ui/onboarding/RegistrationViewController.swift b/Nexd/Nexd/ui/onboarding/RegistrationViewController.swift index 0bad335b..906c2e67 100644 --- a/Nexd/Nexd/ui/onboarding/RegistrationViewController.swift +++ b/Nexd/Nexd/ui/onboarding/RegistrationViewController.swift @@ -21,7 +21,9 @@ class RegistrationViewController: ViewController Void in make.leftMargin.equalTo(8) make.rightMargin.equalTo(-8) - make.top.equalTo(logo.snp.bottom).offset(134) + make.top.equalTo(logo.snp.bottom).offset(80) } contentView.addSubview(emailImageView) @@ -179,7 +189,28 @@ class RegistrationViewController: ViewController Void in + make.height.equalTo(54) + make.rightMargin.equalTo(-8) + make.top.equalTo(confirmPassword.snp.bottom).offset(12) + } + contentView.addSubview(confirmTermsOfUseButton) + confirmTermsOfUseButton.snp.makeConstraints { make -> Void in + make.centerY.equalTo(privacyPolicy.snp_centerY).offset(-7.5) + make.left.equalToSuperview().offset(27) + make.right.equalTo(privacyPolicy.snp.left).offset(-9) + make.height.equalTo(26) + make.width.equalTo(26) + } contentView.addSubview(registerButton) registerButton.style(text: R.string.localizable.registration_button_title_continue()) registerButton.addTarget(self, action: #selector(registerButtonPressed(sender:)), for: .touchUpInside) @@ -187,7 +218,7 @@ class RegistrationViewController: ViewController Void in - make.height.equalTo(54) - make.rightMargin.equalTo(-8) - make.top.equalTo(zipCode.snp.bottom).offset(50) - } - - contentView.addSubview(confirmTermsOfUseButton) - confirmTermsOfUseButton.snp.makeConstraints { make -> Void in - make.centerY.equalTo(privacyPolicy.snp_centerY).offset(-7.5) - make.left.equalToSuperview().offset(27) - make.right.equalTo(privacyPolicy.snp.left).offset(-9) - make.height.equalTo(26) - make.width.equalTo(26) - } contentView.addSubview(registerButton) registerButton.style(text: R.string.localizable.registration_button_title_send()) @@ -144,7 +117,7 @@ class UserDetailsViewController: ViewController KeyboardObserver { return KeyboardObserver(keyboardWillShow: { keyboardSize in - let contentInsets = UIEdgeInsets(top: 0.0, left: 0.0, bottom: keyboardSize.height, right: 0.0) + let contentInsets = UIEdgeInsets(top: 0.0, left: 0.0, bottom: keyboardSize.height - 150, right: 0.0) scrollView.contentInset = contentInsets scrollView.scrollIndicatorInsets = contentInsets diff --git a/Nexd/R.generated.swift b/Nexd/R.generated.swift index f2d0b60e..39c9cab7 100644 --- a/Nexd/R.generated.swift +++ b/Nexd/R.generated.swift @@ -678,7 +678,7 @@ struct R: Rswift.Validatable { /// This `R.string` struct is generated, and contains static references to 1 localization tables. struct string { - /// This `R.string.localizable` struct is generated, and contains static references to 130 localization keys. + /// This `R.string.localizable` struct is generated, and contains static references to 131 localization keys. struct localizable { /// en translation: %1$@ ago, %2$@ /// @@ -1172,6 +1172,10 @@ struct R: Rswift.Validatable { /// /// Locales: en, de static let seeker_overview_empty_label = Rswift.StringResource(key: "seeker_overview_empty_label", tableName: "Localizable", bundle: R.hostingBundle, locales: ["en", "de"], comment: nil) + /// en translation: You need to agree to the terms of use + /// + /// Locales: en, de + static let error_message_user_terms_of_use_consent_missing = Rswift.StringResource(key: "error_message_user_terms_of_use_consent_missing", tableName: "Localizable", bundle: R.hostingBundle, locales: ["en", "de"], comment: nil) /// en translation: Your request /// /// Locales: en, de @@ -3058,6 +3062,21 @@ struct R: Rswift.Validatable { return NSLocalizedString("seeker_overview_empty_label", bundle: bundle, comment: "") } + /// en translation: You need to agree to the terms of use + /// + /// Locales: en, de + static func error_message_user_terms_of_use_consent_missing(preferredLanguages: [String]? = nil) -> String { + guard let preferredLanguages = preferredLanguages else { + return NSLocalizedString("error_message_user_terms_of_use_consent_missing", bundle: hostingBundle, comment: "") + } + + guard let (_, bundle) = localeBundle(tableName: "Localizable", preferredLanguages: preferredLanguages) else { + return "error_message_user_terms_of_use_consent_missing" + } + + return NSLocalizedString("error_message_user_terms_of_use_consent_missing", bundle: bundle, comment: "") + } + /// en translation: Your request /// /// Locales: en, de