代码语言:javascript复制
UIView.animate(withDuration: 0.25) {
kv.snp.updateConstraints { make in
make.top.equalTo(350)
}
//(kv 的父View).layoutIfNeeded()
self.view.layoutIfNeeded()
}