devxoul/UINavigationItem-Margin

iOS 14 issue.

KuldeepAIP opened this issue · 1 comments

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

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