فهرست منبع

fix width fb anim

alqindiirsyam 1 سال پیش
والد
کامیت
df058ef8b1

+ 2 - 1
appbuilder-ios/DigiXLite/DigiXLite/Source/FloatingButton/FloatingButton.swift

@@ -43,7 +43,7 @@ public class FloatingButton: UIView {
     var defaultWidthFB = (UIScreen.main.bounds.height * 0.5) / 7.5
     var defaultHeightFB = (UIScreen.main.bounds.height * 0.5) / 7.5
     let defaultWidthHeightMenuFB = (UIScreen.main.bounds.height * 0.45) / 7.5
-    let widthFBAnim = (UIScreen.main.bounds.height * 1) / 7.5
+    let widthFBAnim = (UIScreen.main.bounds.height * 0.8) / 7.5
     let heightFBAnim = (UIScreen.main.bounds.height * 1) / 7.5
     let heightFBSideTab = (UIScreen.main.bounds.height * 1.05) / 7.5
     let widthFBSideTab: CGFloat = 18
@@ -598,6 +598,7 @@ public class FloatingButton: UIView {
     }
     
     @objc public func hideButton() {
+        animationTimer.invalidate()
         if isShow {
             show(isShow: false)
         }

+ 2 - 1
appbuilder-ios/NexilisLite/NexilisLite/Source/FloatingButton/FloatingButton.swift

@@ -43,7 +43,7 @@ public class FloatingButton: UIView {
     var defaultWidthFB = (UIScreen.main.bounds.height * 0.5) / 7.5
     var defaultHeightFB = (UIScreen.main.bounds.height * 0.5) / 7.5
     let defaultWidthHeightMenuFB = (UIScreen.main.bounds.height * 0.45) / 7.5
-    let widthFBAnim = (UIScreen.main.bounds.height * 1) / 7.5
+    let widthFBAnim = (UIScreen.main.bounds.height * 0.8) / 7.5
     let heightFBAnim = (UIScreen.main.bounds.height * 1) / 7.5
     let heightFBSideTab = (UIScreen.main.bounds.height * 1.05) / 7.5
     let widthFBSideTab: CGFloat = 18
@@ -598,6 +598,7 @@ public class FloatingButton: UIView {
     }
     
     @objc public func hideButton() {
+        animationTimer.invalidate()
         if isShow {
             show(isShow: false)
         }