fix share button in my qr code view

pull/699/head
ryanzhao 2 years ago
parent 202a2de1b5
commit 2638fe4025

@ -234,9 +234,14 @@ private final class ViewMyQRCodeVC : UIViewController {
let shareButtonContainer = UIView()
shareButtonContainer.addSubview(shareButton)
shareButton.pin(.top, to: .top, of: shareButtonContainer)
shareButton.pin(.leading, to: .leading, of: shareButtonContainer, withInset: 80)
shareButton.pin(.trailing, to: .trailing, of: shareButtonContainer, withInset: -80)
shareButton.pin(.bottom, to: .bottom, of: shareButtonContainer)
if UIDevice.current.isIPad {
shareButton.center(in: shareButtonContainer)
shareButton.set(.width, to: Values.iPadButtonWidth)
} else {
shareButton.pin(.leading, to: .leading, of: shareButtonContainer, withInset: 80)
shareButton.pin(.trailing, to: .trailing, of: shareButtonContainer, withInset: -80)
}
// Set up stack view
let spacing = (isIPhone5OrSmaller ? Values.mediumSpacing : Values.largeSpacing)

Loading…
Cancel
Save