加快页面动画速度

This commit is contained in:
bluesea 2024-04-07 14:14:31 +08:00
parent 5b4ff14ff8
commit 3f8a06076d
4 changed files with 6 additions and 6 deletions

View File

@ -428,7 +428,7 @@ class CCHomeController: BaseController, LLCycleScrollViewDelegate,MFMailComposeV
}
func addAnimation(){
UIView.animate(withDuration: 0.3) { [weak self] in
UIView.animate(withDuration: 0.25) { [weak self] in
// self!.mTopView?.top = 0
self!.mineView!.left = 0
self!.mBackView!.backgroundColor = UIColor.colorWithRGB(_r: 0, _g: 0, _b: 0, alpha: 0.5)
@ -439,7 +439,7 @@ class CCHomeController: BaseController, LLCycleScrollViewDelegate,MFMailComposeV
}
func deleteMenu(){
UIView.animate(withDuration: 0.3) { [weak self] in
UIView.animate(withDuration: 0.25) { [weak self] in
// self!.mTopView?.bottom = 0
self!.mineView!.left = -SCREEN_Width
self!.mBackView!.backgroundColor = UIColor.colorWithRGB(_r: 0, _g: 0, _b: 0, alpha: 0.01)

View File

@ -300,7 +300,7 @@ class CCSpaceAlbumFilterPopView2: UIView {
}
func hide() {
UIView.animate(withDuration: 0.5, animations: { [self] in
UIView.animate(withDuration: 0.25, animations: { [self] in
self.listCollectView.alpha = 0
self.backView.frame = CGRect.init(x: 0, y: KScreenHeight + 10 , width: KScreenWidth, height: Back_Height)
}) { (isFinished) in
@ -309,7 +309,7 @@ class CCSpaceAlbumFilterPopView2: UIView {
}
func show() {
UIView.animate(withDuration: 0.5, animations: {
UIView.animate(withDuration: 0.25, animations: {
self.listCollectView.alpha = 1.0
self.backView.frame = CGRect.init(x: 0, y: KScreenHeight - Back_Height, width: KScreenWidth, height: Back_Height)
}) { (isFinished) in

View File

@ -95,7 +95,7 @@ class CCDeviceOperationListView: UIView,UITableViewDelegate, UITableViewDataSour
}
func show() {
UIView.animate(withDuration: 0.5, animations: {
UIView.animate(withDuration: 0.25, animations: {
self.listTableView.alpha = 1.0
self.backView.frame = CGRect.init(x: 0, y: Int(KScreenHeight) - Back_Height, width: Int(KScreenWidth), height: Back_Height)
@ -107,7 +107,7 @@ class CCDeviceOperationListView: UIView,UITableViewDelegate, UITableViewDataSour
func hide() {
UIView.animate(withDuration: 0.5, animations: { [self] in
UIView.animate(withDuration: 0.25, animations: { [self] in
self.listTableView.alpha = 0
self.backView.frame = CGRect.init(x: 0, y: KScreenHeight + 10 , width: KScreenWidth, height: CGFloat(Back_Height))
}) { (isFinished) in