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?