Skip to content

Commit

Permalink
[Design] TeamSparker#70 - AuthComplete UI 레이아웃 구성
Browse files Browse the repository at this point in the history
 AuthComplete UI 레이아웃 구성
  • Loading branch information
L-j-h-c committed Jan 16, 2022
1 parent 32f608a commit a6516c0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Spark-iOS/Spark-iOS/Source/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {

window = UIWindow(frame: windowScene.coordinateSpace.bounds)
window?.windowScene = windowScene
let rootViewController = UIStoryboard(name: Const.Storyboard.Name.habitAuth, bundle: nil).instantiateViewController(withIdentifier: Const.ViewController.Identifier.habitAuth)
let rootViewController = UIStoryboard(name: Const.Storyboard.Name.mainTabBar, bundle: nil).instantiateViewController(withIdentifier: Const.ViewController.Identifier.mainTabBar)
window?.rootViewController = rootViewController
window?.makeKeyAndVisible()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,35 @@ import UIKit

class CompleteAuthVC: UIViewController {

@IBOutlet weak var noButton: UIButton!
@IBOutlet weak var instaView: UIView!

override func viewDidLoad() {
super.viewDidLoad()
setUI()
setGesture()
}

@IBAction func touchNoDismiss(_ sender: Any) {
self.dismiss(animated: false, completion: nil)
}
}

extension CompleteAuthVC {
private func setUI() {
view.backgroundColor = .sparkBlack.withAlphaComponent(0.8)
tabBarController?.tabBar.isHidden = true

instaView.layer.cornerRadius = 2
}

private func setGesture() {
let instaTapGesture: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(tapped(_:)))
instaView.addGestureRecognizer(instaTapGesture)
}

@objc
func tapped(_ gesture: UITapGestureRecognizer) {
// 인스타 공유 기능
}
}

0 comments on commit a6516c0

Please sign in to comment.