Background
class Background
extension Background : CALayerDelegate, CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Equatable, Hashable, NSCoding, NSObjectProtocol, StaticIdentifiable, UIAccessibilityIdentification, UIActivityItemsConfigurationProviding, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UIFocusEnvironment, UIFocusItem, UIFocusItemContainer, UILargeContentViewerItem, UIPasteConfigurationSupporting, UIPopoverPresentationControllerSourceItem, UIResponderStandardEditActions, UITraitChangeObservable, UITraitEnvironment, UIUserActivityRestoring, __UITraitChangeObservable
A specified parent class that indicates background views which are applied when specific pages are presented. These background views will be applied to the view controller where the paysheet itself is presented into.
-
Undocumented
Declaration
Swift
typealias Animation = (@escaping () -> Void) -> Void
-
Undocumented
Declaration
Swift
typealias AnimationCompletion = (@escaping (UIViewAnimatingPosition) -> Void) -> Void
-
Height of screen - Height of top of paysheet.
Declaration
Swift
var availableHeight: CGFloat
-
Lifecycle function during a height change. Override
Declaration
Swift
func changingHeight(_ change: HeightChange, duration: TimeInterval, animation: @escaping Background.Animation, animationCompletion: @escaping Background.AnimationCompletion)
-
Undocumented
Declaration
Swift
func changingPage(from old: ContentPage?, to new: ContentPage)
-
List of UIView instances defined by the Background owner. When consumed, these are added to the actual view that owns that space, when discarded, these views are removed from that space.
Declaration
Swift
var contentViews: [UIView] { get set }
-
Height of the top of the paysheet that have rounded corners and do not completely cover available width.
Declaration
Swift
var cornerHeight: CGFloat
-
Lifecycle function after a height change has occurred. Override.
Declaration
Swift
func didChangeHeight(_ change: HeightChange, duration: TimeInterval, animation: @escaping Background.Animation, animationCompletion: @escaping Background.AnimationCompletion)
-
We need a better means of passing through taps from child views to parent/super views. This is hack to use
shouldPassThroughTouches
flag to return super view to handle tap from hit testDeclaration
Swift
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView?
-
Use reflection for the id type.
Declaration
Swift
static var id: StaticIdentifier { get }
-
Undocumented
Declaration
Swift
init()
-
Determines if touches received by
Background
should passthrough to the views parent or super viewDeclaration
Swift
var shouldPassthroughTouches: Bool
-
Set to static id.
Declaration
Swift
var staticId: StaticIdentifier { get }
-
Lifecycle function before a height change occurs. Override.
Declaration
Swift
func willChangeHeight(_ change: HeightChange, duration: TimeInterval, animation: @escaping Background.Animation, animationCompletion: @escaping Background.AnimationCompletion)