UIView.InsetsLayoutMarginsFromSafeArea UIView.InsetsLayoutMarginsFromSafeArea Property

Definition

Gets or sets a Boolean value that controls whether margins are adjusted to always fall within the safe area. Default is true.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[get: Foundation.Export("insetsLayoutMarginsFromSafeArea")]
[get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[set: Foundation.Export("setInsetsLayoutMarginsFromSafeArea:")]
[set: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[set: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool InsetsLayoutMarginsFromSafeArea { get; set; }
member this.InsetsLayoutMarginsFromSafeArea : bool with get, set

Property Value

Applies to