Class UIScrollViewContentInsetAdjustmentBehavior


  • public final class UIScrollViewContentInsetAdjustmentBehavior
    extends java.lang.Object
    API-Since: 11.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long Always
      contentInset is always adjusted by the scroll view's safeAreaInsets API-Since: 11.0
      static 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 API-Since: 11.0
      static long Never
      contentInset is not adjusted API-Since: 11.0
      static long ScrollableAxes
      Edges for scrollable axes are adjusted (i.e., contentSize.width/height > frame.size.width/height or alwaysBounceHorizontal/Vertical = YES) API-Since: 11.0
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 API-Since: 11.0
        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) API-Since: 11.0
        See Also:
        Constant Field Values
      • Never

        public static final long Never
        contentInset is not adjusted API-Since: 11.0
        See Also:
        Constant Field Values
      • Always

        public static final long Always
        contentInset is always adjusted by the scroll view's safeAreaInsets API-Since: 11.0
        See Also:
        Constant Field Values