Package apple.uikit.enums
Class UIScrollViewContentInsetAdjustmentBehavior
- java.lang.Object
-
- apple.uikit.enums.UIScrollViewContentInsetAdjustmentBehavior
-
public final class UIScrollViewContentInsetAdjustmentBehavior extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static longAlwayscontentInset is always adjusted by the scroll view's safeAreaInsetsstatic longAutomaticSimilar to .scrollableAxes, but for backward compatibility will also adjust the top & bottom contentInset when the scroll view is owned by a view controller with automaticallyAdjustsScrollViewInsets = YES inside a navigation controller, regardless of whether the scroll view is scrollablestatic longNevercontentInset is not adjustedstatic longScrollableAxesEdges for scrollable axes are adjusted (i.e., contentSize.width/height > frame.size.width/height or alwaysBounceHorizontal/Vertical = YES)
-
-
-
Field Detail
-
Automatic
public static final long Automatic
Similar to .scrollableAxes, but for backward compatibility will also adjust the top & bottom contentInset when the scroll view is owned by a view controller with automaticallyAdjustsScrollViewInsets = YES inside a navigation controller, regardless of whether the scroll view is scrollable- See Also:
- Constant Field Values
-
ScrollableAxes
public static final long ScrollableAxes
Edges for scrollable axes are adjusted (i.e., contentSize.width/height > frame.size.width/height or alwaysBounceHorizontal/Vertical = YES)- See Also:
- Constant Field Values
-
Never
public static final long Never
contentInset is not adjusted- See Also:
- Constant Field Values
-
Always
public static final long Always
contentInset is always adjusted by the scroll view's safeAreaInsets- See Also:
- Constant Field Values
-
-