Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Border on all four sides of Menu Container #720

Open
sumitaggarwal23021999 opened this issue Jun 21, 2024 · 1 comment
Open

Add Border on all four sides of Menu Container #720

sumitaggarwal23021999 opened this issue Jun 21, 2024 · 1 comment

Comments

@sumitaggarwal23021999
Copy link

I want to add border to all four sides of menu view, also there I want to have some margin from left and right, can anyone help how I can do that.

Thanks

@rechsteiner
Copy link
Owner

Hi! You can archive this by subclassing PagingView and overriding the setupConstraints method to position the menu (self.collectionView) the way you prefer. You could also apply borders on the collection view here. Here's a similar example: https://github.com/rechsteiner/Parchment/blob/main/Example/Examples/Images/UnsplashViewController.swift#L24. Does that work for you?

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

No branches or pull requests

2 participants