let xPosition = payPalSingleClickView.frame.origin.x
let yPosition = payPalSingleClickView.frame.origin.y // Slide Up - 20px
let width = payPalSingleClickView.frame.size.width
let height = payPalSingleClickView.frame.size.height
UIView.animate(withDuration: 0.0, animations: {
self.personalBalanceView.frame = CGRect(x: xPosition, y: yPosition, width: width, height: height)
})
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter