☆
Size: a a a
☆
AS
AB
AS
☆
KK
☆
☆
СВ
СВ
AO
TS
superView.addSubview(bannerView)
bannerView.snp.makeConstraints {
$0.height.equalTo(bannerHeight)
$0.width.equalTo(AppConstants.screenWidth)
self.bannerTopConstraint = $0.top.equalToSuperview().offset(0 - bannerHeight).constraint
}
UIView.animate(withDuration: animateDuration) {
bannerTopConstraint?.update(offset: 0)
superView.layoutIfNeeded()
}
RS