Constants to specify metrics to use for appearance.
SDKs
- iOS 5.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
enum UIBarMetrics : Int
Constants to specify metrics to use for appearance.
SDKs
Framework
enum UIBarMetrics : Int
case `default`
Specifies default metrics for the device.
case compact
Specifies metrics when using the phone idiom.
case default Prompt
Specifies default metrics for the device for bars with the prompt property, such as UINavigation
and UISearch
.
case compact Prompt
Specifies metrics for bars with the prompt property when using the phone idiom, such as UINavigation
and UISearch
.
static var landscape Phone: UIBar Metrics
Specifies metrics for landscape orientation using the phone idiom.
static var landscape Phone Prompt: UIBar Metrics
Specifies metrics for landscape orientation using the phone idiom for bars with the prompt property, such as UINavigation
and UISearch
.