UIView.animate(withDuration: 0.25) {
kv.snp.updateConstraints { make in
make.top.equalTo(350)
}
//(kv 的父View).layoutIfNeeded()
self.view.layoutIfNeeded()
}
网友评论