ソースを参照

change position post and stream button

kevin 3 年 前
コミット
e7914cdbef
1 ファイル変更8 行追加8 行削除
  1. 8 8
      appbuilder-ios/AppBuilder/AppBuilder/ViewController.swift

+ 8 - 8
appbuilder-ios/AppBuilder/AppBuilder/ViewController.swift

@@ -498,11 +498,11 @@ class ViewController: UITabBarController, UITabBarControllerDelegate {
             let xCCPosition = ViewController.ccButton.frame.origin.x
             let yCCPosition = ViewController.ccButton.frame.origin.y + 90
 
-            let xStreamingPosition = ViewController.streamingButton.frame.origin.x - 50
-            let yStreamingPosition = ViewController.streamingButton.frame.origin.y + 70
+            let xPostPosition = ViewController.postButton.frame.origin.x - 50
+            let yPostPosition = ViewController.postButton.frame.origin.y + 70
 
-            let xPostPosition = ViewController.postButton.frame.origin.x - 80
-            let yPostPosition = ViewController.postButton.frame.origin.y + 20
+            let xStreamingPosition = ViewController.streamingButton.frame.origin.x - 80
+            let yStreamingPosition = ViewController.streamingButton.frame.origin.y + 20
             UIView.animate(withDuration: 0.5, animations: {
 //                if !ViewController.isBlue {
 //                    ViewController.middleButton.transform = CGAffineTransform(rotationAngle: 0)
@@ -530,11 +530,11 @@ class ViewController: UITabBarController, UITabBarControllerDelegate {
             let xCCPosition = ViewController.ccButton.frame.origin.x
             let yCCPosition = ViewController.ccButton.frame.origin.y - 90
 
-            let xStreamingPosition = ViewController.streamingButton.frame.origin.x + 50
-            let yStreamingPosition = ViewController.streamingButton.frame.origin.y - 70
+            let xPostPosition = ViewController.postButton.frame.origin.x + 50
+            let yPostPosition = ViewController.postButton.frame.origin.y - 70
 
-            let xPostPosition = ViewController.postButton.frame.origin.x + 80
-            let yPostPosition = ViewController.postButton.frame.origin.y - 20
+            let xStreamingPosition = ViewController.streamingButton.frame.origin.x + 80
+            let yStreamingPosition = ViewController.streamingButton.frame.origin.y - 20
             UIView.animate(withDuration: 0.5, animations: {
 //                if !ViewController.isBlue{
 //                    ViewController.middleButton.transform = CGAffineTransform(rotationAngle: .pi / 2)