Skip to content

UIInteraction based api design#3

Merged
noppefoxwolf merged 6 commits into
mainfrom
feature/interaction-based
Oct 28, 2024
Merged

UIInteraction based api design#3
noppefoxwolf merged 6 commits into
mainfrom
feature/interaction-based

Conversation

@noppefoxwolf
Copy link
Copy Markdown
Owner

No description provided.


var transitionController: DrawerTransitionController? = nil

public init(delegate: any DrawerInteractionDelegate) {
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#endif
}

public func present() {
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API Design Ref:
func dismissMenu()

public protocol DrawerInteractionDelegate: AnyObject, Sendable {
func drawerInteraction(_ interaction: DrawerInteraction, widthForDrawer drawerViewController: UIViewController) -> CGFloat
func drawerInteraction(_ interaction: DrawerInteraction, presentingViewControllerFor viewController: UIViewController) -> UIViewController?
func viewController(for interaction: DrawerInteraction) -> UIViewController
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@noppefoxwolf noppefoxwolf merged commit eb1d86c into main Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant