Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override func layoutSubviews() {
- sizeToFit()
- var sizeThatFits: CGSize = bounds.size
- sizeThatFits.width = UIScreen.main.bounds.size.width - popupSizeHorizontalMargin
- sizeThatFits.height = getStartedButton.frame.maxY + popupBottomMargin
- let newFrame = CGRect(x: popupOriginX, y: bounds.midY - sizeThatFits.height/2, width: sizeThatFits.width, height: sizeThatFits.height)
- frame = newFrame
- }
Add Comment
Please, Sign In to add comment