Disable link a device button for now

pull/359/head 1.8.1
Niels Andriesse 4 years ago
parent 68d9b6c747
commit f8180d7e65

@ -59,10 +59,10 @@ final class LandingVC : BaseVC {
// Link button container // Link button container
let linkButtonContainer = UIView() let linkButtonContainer = UIView()
linkButtonContainer.set(.height, to: Values.onboardingButtonBottomOffset) linkButtonContainer.set(.height, to: Values.onboardingButtonBottomOffset)
linkButtonContainer.addSubview(linkButton) // linkButtonContainer.addSubview(linkButton)
linkButton.center(.horizontal, in: linkButtonContainer) // linkButton.center(.horizontal, in: linkButtonContainer)
let isIPhoneX = (UIApplication.shared.keyWindow!.safeAreaInsets.bottom > 0) // let isIPhoneX = (UIApplication.shared.keyWindow!.safeAreaInsets.bottom > 0)
linkButton.centerYAnchor.constraint(equalTo: linkButtonContainer.centerYAnchor, constant: isIPhoneX ? -4 : 0).isActive = true // linkButton.centerYAnchor.constraint(equalTo: linkButtonContainer.centerYAnchor, constant: isIPhoneX ? -4 : 0).isActive = true
// Button stack view // Button stack view
let buttonStackView = UIStackView(arrangedSubviews: [ registerButton, restoreButton ]) let buttonStackView = UIStackView(arrangedSubviews: [ registerButton, restoreButton ])
buttonStackView.axis = .vertical buttonStackView.axis = .vertical

Loading…
Cancel
Save