瀏覽代碼

AppCoordinator: Remove unnecessary self

Soomin Lee 6 年之前
父節點
當前提交
b013952120
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Sources/Coordinators/AppCoordinator.swift

+ 3 - 3
Sources/Coordinators/AppCoordinator.swift

@@ -38,14 +38,14 @@ class Services: NSObject {
     }
 
     private func setupChildViewControllers() {
-        self.tabBarController.addChild(playerController)
-        self.tabBarController.view.addSubview(playerController.view)
+        tabBarController.addChild(playerController)
+        tabBarController.view.addSubview(playerController.view)
         playerController.view.layoutMargins = UIEdgeInsets(top: 0,
                                                            left: 0,
                                                            bottom: tabBarController.tabBar.frame.size.height,
                                                            right: 0)
         playerController.realBottomAnchor = tabBarController.tabBar.topAnchor
-        playerController.didMove(toParent: self.tabBarController)
+        playerController.didMove(toParent: tabBarController)
     }
 
     @objc func start() {