devxoul / UINavigationItem-Margin

Margins for UINavigationItem
MIT License
159 stars 12 forks source link

iOS 14 issue. #12

Open KuldeepAIP opened 3 years ago

KuldeepAIP commented 3 years ago
self.navigationItem.leftMargin = 0
self.navigationItem.rightMargin = 10

i used above code to set margin and it's working fine in iOS 13 and lower but when i try to run this code in xCode 12 with iOS 14 navigationitem jumps. here is the gif image of that.

iOS 14 issue

Let me know how to fix this. Thanks

ninholli commented 3 years ago

I fixed by adding navigation items in the viewDidAppear().