Monday, 4 November 2019

How to get layout margins for bar button item in navigation bar?

I'm trying to create section headers in a collection view that look similar to section headers in a table view.

The text in a table view section header is aligned with the left bar button item. How do I get this alignment layout value in a collection view?

In a table view, this alignment value is in the layout margins property. I'm not able to find something equivalent in a collection view.

tableView.layoutMargins.left


from How to get layout margins for bar button item in navigation bar?

No comments:

Post a Comment