| | |
| | | */ |
| | | var ignoreScrollingAdjustment: Bool { |
| | | get { |
| | | if let base = base { |
| | | return objc_getAssociatedObject(base, &AssociatedKeys.ignoreScrollingAdjustment) as? Bool ?? false |
| | | } |
| | | return false |
| | | } |
| | | set(newValue) { |
| | | if let base = base { |
| | | objc_setAssociatedObject(base, &AssociatedKeys.ignoreScrollingAdjustment, |
| | | newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | */ |
| | | var ignoreContentInsetAdjustment: Bool { |
| | | get { |
| | | if let base = base { |
| | | return objc_getAssociatedObject(base, &AssociatedKeys.ignoreContentInsetAdjustment) as? Bool ?? false |
| | | } |
| | | return false |
| | | } |
| | | set(newValue) { |
| | | if let base = base { |
| | | objc_setAssociatedObject(base, &AssociatedKeys.ignoreContentInsetAdjustment, |
| | | newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | */ |
| | | var restoreContentOffset: Bool { |
| | | get { |
| | | if let base = base { |
| | | return objc_getAssociatedObject(base, &AssociatedKeys.restoreContentOffset) as? Bool ?? false |
| | | } |
| | | return false |
| | | } |
| | | set(newValue) { |
| | | if let base = base { |
| | | objc_setAssociatedObject(base, &AssociatedKeys.restoreContentOffset, |
| | | newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | // swiftlint:disable unused_setter_value |
| | | @available(iOSApplicationExtension, unavailable) |