GoogleMaps Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSMapViewPaddingAdjustmentBehavior
enum GMSMapViewPaddingAdjustmentBehavior : NSUInteger {}
Constants indicating how safe area insets are added to padding.
-
Always include the safe area insets in the padding.
Declaration
Objective-C
kGMSMapViewPaddingAdjustmentBehaviorAlways
-
When the padding value is smaller than the safe area inset for a particular edge, use the safe
area value for layout, else use padding.
Declaration
Objective-C
kGMSMapViewPaddingAdjustmentBehaviorAutomatic
-
Never include the safe area insets in the padding. This was the behavior prior to version 2.5.
Declaration
Objective-C
kGMSMapViewPaddingAdjustmentBehaviorNever
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSMapViewPaddingAdjustmentBehavior\u003c/code\u003e defines how safe area insets are incorporated into the padding of a \u003ccode\u003eGMSMapView\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt offers three options: \u003ccode\u003ealways\u003c/code\u003e, \u003ccode\u003eautomatic\u003c/code\u003e, and \u003ccode\u003enever\u003c/code\u003e, controlling whether safe area insets are included in padding calculations.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ealways\u003c/code\u003e consistently includes safe area insets, while \u003ccode\u003eautomatic\u003c/code\u003e uses them only when padding is smaller than the safe area, and \u003ccode\u003enever\u003c/code\u003e ignores them entirely, reverting to pre-version 2.5 behavior.\u003c/p\u003e\n"]]],[],null,["# GoogleMaps Framework Reference\n\nGMSMapViewPaddingAdjustmentBehavior\n===================================\n\n enum GMSMapViewPaddingAdjustmentBehavior : NSUInteger {}\n\nConstants indicating how safe area insets are added to padding.\n- `\n ``\n ``\n `\n\n ### [kGMSMapViewPaddingAdjustmentBehaviorAlways](#/c:@E@GMSMapViewPaddingAdjustmentBehavior@kGMSMapViewPaddingAdjustmentBehaviorAlways)\n\n `\n ` \n Always include the safe area insets in the padding. \n\n #### Declaration\n\n Swift \n\n case always = 0\n\n Objective-C \n\n kGMSMapViewPaddingAdjustmentBehaviorAlways\n\n- `\n ``\n ``\n `\n\n ### [kGMSMapViewPaddingAdjustmentBehaviorAutomatic](#/c:@E@GMSMapViewPaddingAdjustmentBehavior@kGMSMapViewPaddingAdjustmentBehaviorAutomatic)\n\n `\n ` \n When the padding value is smaller than the safe area inset for a particular edge, use the safe\n area value for layout, else use padding. \n\n #### Declaration\n\n Swift \n\n case automatic = 1\n\n Objective-C \n\n kGMSMapViewPaddingAdjustmentBehaviorAutomatic\n\n- `\n ``\n ``\n `\n\n ### [kGMSMapViewPaddingAdjustmentBehaviorNever](#/c:@E@GMSMapViewPaddingAdjustmentBehavior@kGMSMapViewPaddingAdjustmentBehaviorNever)\n\n `\n ` \n Never include the safe area insets in the padding. This was the behavior prior to version 2.5. \n\n #### Declaration\n\n Swift \n\n case never = 2\n\n Objective-C \n\n kGMSMapViewPaddingAdjustmentBehaviorNever"]]