UIBarMetrics UIBarMetrics Enum


Enumerates layout bar metrics.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIBarMetrics
type UIBarMetrics = 


Compact Compact 1

Metrics for the phone idiom.

CompactPrompt CompactPrompt 102

Default metrics for bars with prompts on the phone idiom.

Default Default 0

The default metrics for the device.

DefaultPrompt DefaultPrompt 101

Default metrics for the device for bars with the prompt property, e.g., UINavigationBar and UISearchBar.

LandscapePhone LandscapePhone 1

Developers should not use this deprecated field. Developers should use 'UIBarMetrics.Compat' instead.

LandscapePhonePrompt LandscapePhonePrompt 102

Metrics for landscape orientation for the phone idiom, for bar with the prompt property.

Applies to