ALL BUSINESS
COMIDA
DIRECTORIES
EDUCATIONAL
ENTERTAINMENT
FASHION TIPS
FINER THINGS
FREE CREATOR TOOLS
HEALTH
MARKETPLACE
MEMBER's ONLY
MONEY MATTER$
MOTIVATIONAL
NEWS & WEATHER
TECHNOLOGIA
TELEVISION NETWORKS
USA VOTES 2024
VIDEOS
INVESTOR RELATIONS
IN DEVELOPMENT
Posted by - Latinos MediaSyndication -
on - June 3, 2023 -
Filed in - Technology -
-
387 Views - 0 Comments - 0 Likes - 0 Reviews
I'm using the setBackButtonTitlePositionAdjustment:forBarMetrics: method on UIBarButtonItem's appearance like so:
UIBarButtonItem.appearance().setBackButtonTitlePositionAdjustment(UIOffsetMake(12, -1), forBarMetrics: .Default) UIBarButtonItem.appearance().setBackButtonTitlePositionAdjustment(UIOffsetMake(15, -1), forBarMetrics: .Compact)
Then, in a view controller I'd like to use backButtonTitlePositionAdjustment(for:) to get the value. I assumed there must be a UIBarMetrics value I could use - perhaps in the navigation bar or a UITraitCollection, but I think I'm missing something obvious?