rechsteiner / Parchment

A paging view with a highly customizable menu ✨
MIT License
3.37k stars 419 forks source link

Add Border on all four sides of Menu Container #720

Open sumitaggarwal23021999 opened 3 months ago

sumitaggarwal23021999 commented 3 months ago

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 commented 2 months ago

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?