Skip to content

Commit

Permalink
Presentable에 present 여부 전달 함수 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
wangseung committed Feb 11, 2025
1 parent eb6a422 commit 31b0f0e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions PanModal/Presentable/PanModalPresentable+Defaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ public extension PanModalPresentable where Self: UIViewController {

func willTransition(to state: PanModalPresentationState) {

}

func panModalWillPresent() {

}

func panModalDidPresent() {

}

func panModalWillDismiss() {
Expand Down
9 changes: 9 additions & 0 deletions PanModal/Presentable/PanModalPresentable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,15 @@ public protocol PanModalPresentable {
*/
func willTransition(to state: PanModalPresentationState)

/**
Notifies the delegate that the pan modal is about to be presented.

Default value is an empty implementation.
*/
func panModalWillPresent()

func panModalDidPresent()

/**
Notifies the delegate that the pan modal is about to be dismissed.

Expand Down

0 comments on commit 31b0f0e

Please sign in to comment.