Add beta terms label

pull/49/head
Niels Andriesse 6 years ago
parent 4eda27dcc0
commit aa7ff398db

@ -30,16 +30,25 @@ public class OnboardingSplashViewController: OnboardingBaseViewController {
view.setCompressionResistanceVerticalLow() view.setCompressionResistanceVerticalLow()
lokiLogoContainer.addSubview(lokiLogoImageView) lokiLogoContainer.addSubview(lokiLogoImageView)
let betaTermsLabel = UILabel()
betaTermsLabel.text = NSLocalizedString("Loki Messenger is currently in beta. For development purposes the beta version collects basic usage statistics and crash logs. In addition, the beta version doesn't provide full privacy and shouldn't be used to transmit sensitive information.", comment: "")
betaTermsLabel.textColor = .white
betaTermsLabel.font = .ows_dynamicTypeSubheadlineClamped
betaTermsLabel.numberOfLines = 0
betaTermsLabel.textAlignment = .center
betaTermsLabel.lineBreakMode = .byWordWrapping
betaTermsLabel.accessibilityIdentifier = "onboarding.splash." + "betaTermsLabel"
let privacyPolicyLabel = UILabel() let privacyPolicyLabel = UILabel()
privacyPolicyLabel.text = NSLocalizedString("Privacy Policy", comment: "") privacyPolicyLabel.text = NSLocalizedString("Privacy Policy", comment: "")
privacyPolicyLabel.textColor = .ows_materialBlue privacyPolicyLabel.textColor = .ows_materialBlue
privacyPolicyLabel.font = UIFont.ows_dynamicTypeSubheadlineClamped privacyPolicyLabel.font = .ows_dynamicTypeSubheadlineClamped
privacyPolicyLabel.numberOfLines = 0 privacyPolicyLabel.numberOfLines = 0
privacyPolicyLabel.textAlignment = .center privacyPolicyLabel.textAlignment = .center
privacyPolicyLabel.lineBreakMode = .byWordWrapping privacyPolicyLabel.lineBreakMode = .byWordWrapping
privacyPolicyLabel.isUserInteractionEnabled = true privacyPolicyLabel.isUserInteractionEnabled = true
privacyPolicyLabel.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(explanationLabelTapped))) privacyPolicyLabel.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(explanationLabelTapped)))
privacyPolicyLabel.accessibilityIdentifier = "onboarding.splash." + "explanationLabel" privacyPolicyLabel.accessibilityIdentifier = "onboarding.splash." + "privacyPolicyLabel"
let continueButton = self.createButton(title: NSLocalizedString("BUTTON_CONTINUE", comment: "Label for 'continue' button."), selector: #selector(continuePressed)) let continueButton = self.createButton(title: NSLocalizedString("BUTTON_CONTINUE", comment: "Label for 'continue' button."), selector: #selector(continuePressed))
view.addSubview(continueButton) view.addSubview(continueButton)
@ -48,6 +57,8 @@ public class OnboardingSplashViewController: OnboardingBaseViewController {
let stackView = UIStackView(arrangedSubviews: [ let stackView = UIStackView(arrangedSubviews: [
titleLabel, titleLabel,
lokiLogoContainer, lokiLogoContainer,
betaTermsLabel,
UIView.spacer(withHeight: 24),
privacyPolicyLabel, privacyPolicyLabel,
UIView.spacer(withHeight: 24), UIView.spacer(withHeight: 24),
continueButton continueButton

@ -2619,3 +2619,4 @@
"Loki" = "Loki"; "Loki" = "Loki";
"Can't Start Conversation" = "Can't Start Conversation"; "Can't Start Conversation" = "Can't Start Conversation";
"Please enter the public key of the person you'd like to message." = "Please enter the public key of the person you'd like to message."; "Please enter the public key of the person you'd like to message." = "Please enter the public key of the person you'd like to message.";
"Loki Messenger is currently in beta. For development purposes the beta version collects basic usage statistics and crash logs. In addition, the beta version doesn't provide full privacy and shouldn't be used to transmit sensitive information." = "Loki Messenger is currently in beta. For development purposes the beta version collects basic usage statistics and crash logs. In addition, the beta version doesn't provide full privacy and shouldn't be used to transmit sensitive information.";

Loading…
Cancel
Save