Skip to content

Commit

Permalink
[Comment] Health-Food-Me#12 - 마크주석 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yungu0010 committed Jul 12, 2022
1 parent 137b47f commit 4aba8f9
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import SnapKit

class HamburgerBarVC: UIViewController {

// MARK: - Properties

var hambergurBarViewTranslation = CGPoint(x: 0, y: 0)
var hambergurBarViewVelocity = CGPoint(x: 0, y: 0)
var name: String? = "배부른 현우는 행복해요"
Expand Down Expand Up @@ -91,6 +93,7 @@ class HamburgerBarVC: UIViewController {
return st
}()

// MARK: - View Life Cycle

override func viewDidLoad() {
super.viewDidLoad()
Expand All @@ -112,7 +115,12 @@ class HamburgerBarVC: UIViewController {
}
}

// MARK: - Extension

extension HamburgerBarVC {

// MARK: - Methods

private func setUI() {
setButtons()
setDivindingView()
Expand Down Expand Up @@ -248,6 +256,8 @@ extension HamburgerBarVC {
self.hamburgerBarView.addGestureRecognizer(UIPanGestureRecognizer(target: self, action: #selector(moveHamburgerBarWithGesture(_:))))
}

// MARK: - @objc Methods

@objc func moveHamburgerBarWithGesture(_ sender: UIPanGestureRecognizer) {

hambergurBarViewTranslation = sender.translation(in: hamburgerBarView)
Expand Down

0 comments on commit 4aba8f9

Please sign in to comment.