change view position . Animate

PHOTO EMBED

Fri Jun 03 2022 11:39:59 GMT+0000 (Coordinated Universal Time)

Saved by @hasnat #ios #swift #view #change #animate

        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)
            })
content_copyCOPY