Classes
The following classes are available globally.
-
See moreBPKAppearancecontains helpers for applying default brand appearance to UI components.Declaration
Objective-C
@interface BPKAppearance : NSObjectSwift
class BPKAppearance : NSObject -
See moreBPKBadgeis a subclass ofUIViewwhich contains the Skyscanner badge style.Declaration
Objective-C
@interface BPKBadge : UIViewSwift
class BPKBadge : UIView -
See moreBPKButtonis a subclass ofUIButtonconfigured with Skyscanner style properties.Declaration
Objective-C
@interface BPKButton : UIButtonSwift
class BPKButton : UIButton -
See moreBPKCalendaris a subclass ofFSCalendarconfigured with Skyscanner style properties.Declaration
Objective-C
@interface BPKCalendar : UIViewSwift
class BPKCalendar -
See moreBPKCalendarColorcontains a number of pre-defined colours commonly used when presenting a calendar.Declaration
Objective-C
@interface BPKCalendarColor : NSObjectSwift
class BPKCalendarColor -
See moreBPKCalendarConfigurationis a subclass ofNSObjectcontaining properties which the calendar will use when rendering.Declaration
Objective-C
@interface BPKCalendarConfiguration : NSObjectSwift
class BPKCalendarConfiguration -
See moreBPKCalendarPriceLabelCellis a subclass ofBPKCalendarCell. It allows a custom label containing auxillary price information to be shown below the cell.Declaration
Objective-C
@interface BPKCalendarPriceLabelCell : BPKCalendarCellSwift
class BPKCalendarPriceLabelCell : BPKCalendarCell -
See moreBPKCalendarPriceLabelCellDatacontains the properties required to show a price label under a calendar cell.Declaration
Objective-C
@interface BPKCalendarPriceLabelCellData : NSObjectSwift
class BPKCalendarPriceLabelCellData -
See moreBPKCalendarPriceLabelCellDatacontains the properties required to customise a calendar cell under a traffic-light system to colour cells according to data.Declaration
Objective-C
@interface BPKCalendarPriceLabelStyle : NSObjectSwift
class BPKCalendarPriceLabelStyle -
BPKCalendarTrafficLightCellis a subclass ofBPKCalendarCell. It allows customisation of the cell fill colour and title colour.Declaration
Objective-C
@interface BPKCalendarTrafficLightCell : BPKCalendarCellSwift
class BPKCalendarTrafficLightCell : BPKCalendarCell -
See moreBPKCalendarTrafficLightCellDatacontains the properties required to customise a calendar cell under a traffic-light system to colour cells according to data.Declaration
Objective-C
@interface BPKCalendarTrafficLightCellData : NSObjectSwift
class BPKCalendarTrafficLightCellData -
See moreBPKCardis a subclass ofUIControlwhich contains the Skyscanner card style. Cards are a lightweight control with a shadow. Cards can be configured to have padding or not.Declaration
Objective-C
@interface BPKCard : UIControlSwift
class BPKCard : UIControl -
See moreBPKCardDivideris a subclass ofUIViewwhich contains the Skyscanner card divider style.Declaration
Objective-C
@interface BPKCardDivider : UIViewSwift
class BPKCardDivider : UIView -
See moreBPKChipis a subclass ofUIControlconfigured with Skyscanner style properties.Declaration
Objective-C
@interface BPKChip : UIControlSwift
class BPKChip : UIControl -
BPKColor is the entry point for the Backpack color palette. It expose the whole palette as static methods.
See moreDeclaration
Objective-C
@interface BPKColor : NSObjectSwift
class BPKColor : NSObject -
An object describing individual button actions in a
See moreBPKDialogControllerorBPKDialogView. Each action has an associated handler to invoke when the button is tapped or otherwise triggered.Declaration
Objective-C
@interface BPKDialogButtonAction : NSObjectSwift
class BPKDialogButtonAction : NSObject -
A
UIViewControllersubclass encapsulating the Backpack dialog component. The controller is preconfigured to use itself as thetransitioningDelegateconsumers should not change this as it breaks the custom transition support. The dialog always contains a title and message as-well as zero or more action buttons. The scrim display behind the content view can be configured to dismiss the view controller where appropriate.The controller is exclusively intended to be used with
See morepresentViewController:.Declaration
Objective-C
@interface BPKDialogController : UIViewController <BPKDialogViewDelegate, UIViewControllerTransitioningDelegate>Swift
class BPKDialogController : UIViewController, BPKDialogViewDelegate, UIViewControllerTransitioningDelegate -
An object that represents the icon displayed atop a dialog.
See moreDeclaration
Objective-C
@interface BPKDialogIconDefinition : NSObjectSwift
class BPKDialogIconDefinition : NSObject -
An object describing the action to take when the scrim of a
See moreBPKDialogControlleris tapped by the user.Declaration
Objective-C
@interface BPKDialogScrimAction : NSObjectSwift
class BPKDialogScrimAction : NSObject -
A
UIViewsubclass that renders the Backpack Dialog. Used byBPKDialogController, but can also be used directly in rare cases.See moreSee
BPKDialogControllerDeclaration
Objective-C
@interface BPKDialogView : UIView <UIGestureRecognizerDelegate>Swift
class BPKDialogView : UIView, UIGestureRecognizerDelegate -
BPKDuration is the entry point for the Backpack animation durations. It exposes all the durations as static methods.
See moreDeclaration
Objective-C
@interface BPKDuration : NSObjectSwift
class BPKDuration : NSObject -
A
See moreBPKFlareViewis a subclass of UIViewDeclaration
Objective-C
@interface BPKFlareView : UIViewSwift
class BPKFlareView : UIView -
BPKFont is the entry point for the Backpack typography stack. It expose the supported text styles as static methods.
See moreDeclaration
Objective-C
@interface BPKFont : NSObjectSwift
class BPKFont : NSObject -
The
BPKGradientclass contains definitions for the Backpack gradients. It has factory methods for creating instances of supported gradients. Instances of BPKGradient capture the configuration of the gradient, but are not concerned with rendering.Warning
Don’t render Backpack gradients with
CAGradientLayeras it does not accurately render gradients for non-square views. Instead useBPKGradientViewwhich is backed byBPKGradientLayer.See moreSee
BPKGradientView
Declaration
Objective-C
@interface BPKGradient : NSObjectSwift
class BPKGradient : NSObject -
See moreBPKGradientLayeris aCALayersubclass that can correctly render Backpack gradients for non-square views. It should be preferred in favour ofCAGradientLayeras it does not correctly render gradients for non-square views.Declaration
Objective-C
@interface BPKGradientLayer : CALayerSwift
class BPKGradientLayer : CALayer -
This class is a
UIViewsubclass for correctly drawing non-square gradients. It’s backed by a layer that does the actual drawing, but using this view directly is preferred.Changing the bounds or updating the gradient property causes this view to redraw on the next display pass.
See moreDeclaration
Objective-C
@interface BPKGradientView : UIViewSwift
class BPKGradientView : UIView -
This class is a
See moreUIViewsubclass that draws the primary gradient. It’s backed by a layer that does the actual drawing, but using this view directly is preferred.Declaration
Objective-C
@interface BPKPrimaryGradientView : UIViewSwift
class BPKPrimaryGradientView : UIView -
A
See moreBPKHorizontalNavigationis a control comprising of multiple segments, where each acts as a discrete button.Declaration
Objective-C
@interface BPKHorizontalNavigation : UIControlSwift
class BPKHorizontalNavigation : UIControl -
A single option within a horizontal navigation.
Can be configured to show an optional icon, always includes a name.
See moreDeclaration
Objective-C
@interface BPKHorizontalNavigationOption : NSObject <BPKHorizontalNavigationOptionType>Swift
class BPKHorizontalNavigationOption : NSObject, BPKHorizontalNavigationOptionType -
This class encapsulates all Backpack icons and the ability to render them as
See moreUIImage. It leverages aNSCacheto prevent excessive performance impact when using the same icon many times. Further the use ofNSCachemeans that in low memory scenarios the cache will be cleared to allow more important memory use.Declaration
Objective-C
@interface BPKIcon : NSObjectSwift
class BPKIcon : NSObject -
A
See moreUIImageViewsubclass that makes working with Backpack icons easier for cases where a single icon is used and colour is controlled viatintColor. The icon is always rendered using template rendering.Declaration
Objective-C
@interface BPKIconView : UIImageViewSwift
class BPKIconView : UIImageView -
See moreBPKLabelis a subclass ofUILabelwhich uses the Skyscanner style.Declaration
Objective-C
@interface BPKLabel : UILabelSwift
class BPKLabel -
A navigation bar component similar to
See moreUINavigationBarfrom UIKit implementing the iOS 11 style large title pattern.Declaration
Objective-C
@interface BPKNavigationBar : UIViewSwift
class BPKNavigationBar : UIView -
See moreBPKOverlayBackgroundViewis a subclass ofUIViewwhich allows you to apply Skyscanner style tints to its content.Declaration
Objective-C
@interface BPKOverlayBackgroundView : UIViewSwift
class BPKOverlayBackgroundView : UIView -
See moreBPKOverlayViewis a subclass ofUIViewwhich allows you to apply Skyscanner style tints to background content.Declaration
Objective-C
@interface BPKOverlayView : UIViewSwift
class BPKOverlayView : UIView -
See moreBPKPanelis a subclass ofUIViewwhich contains the Skyscanner panel style. Panels are a lightweight container with a subtle shadow. Panels can be configured to have padding or not.Declaration
Objective-C
@interface BPKPanel : UIViewSwift
class BPKPanel : UIView -
See moreBPKProgressBaris a lightweight subclass ofUIProgressViewwith Skyscanner styling applied.Declaration
Objective-C
@interface BPKProgressBar : UIProgressViewSwift
class BPKProgressBar : UIProgressView -
See moreBPKRatingis a subclass ofUIViewconfigured with Skyscanner style properties.Declaration
Objective-C
@interface BPKRating : UIViewSwift
class BPKRating : UIView -
An object that represents the text displayed inside the rating component.
See moreDeclaration
Objective-C
@interface BPKRatingTextDefinition : NSObjectSwift
class BPKRatingTextDefinition : NSObject -
The
See moreBPKShadowclass contains definitions for Backpack shaddows. It has factory methods for creating instances of supported shaddows.Declaration
Objective-C
@interface BPKShadow : NSObjectSwift
class BPKShadow : NSObject -
A snackbar is a piece of UI displayed at the bottom edge of the window which is useful to show notifications and other feedback on actions the user has just taken.
Users can also take contextual actions for example undoing the change that caused the snackbar to be displayed.
See moreDeclaration
Objective-C
@interface BPKSnackbar : UIViewSwift
class BPKSnackbar : UIView -
Describes the button to show in a snackbar.
See moreDeclaration
Objective-C
@interface BPKSnackbarButton : NSObjectSwift
class BPKSnackbarButton : NSObject -
See moreBPKSpinneris a subclass ofUIActivityIndicatorViewconfigured with Skyscanner style properties.Declaration
Objective-C
@interface BPKSpinner : UIActivityIndicatorViewSwift
class BPKSpinner : UIActivityIndicatorView -
A component for displaying a star rating for example for reviews.
The component uses a scale of 0 to 5 stars. It supports half stars and will round down to the nearest half star for display. When using the stars to show an average of many ratings it’s advisable to display a text string adjecent to the star rating with the exact rating value.
See moreDeclaration
Objective-C
@interface BPKStarRating : UIViewSwift
class BPKStarRating : UIView -
See moreBPKSwitchis a subclass ofUISwitchconfigured with Skyscanner style properties.Declaration
Objective-C
@interface BPKSwitch : UISwitchSwift
class BPKSwitch : UISwitch -
BPKTabBarControlleris a subclass ofUITabBarControllerconfigured with Skyscanner style properties.Declaration
Objective-C
@interface BPKTabBarController : UITabBarControllerSwift
class BPKTabBarController : UITabBarController -
See moreBPKTappableLinkLabelis a subclass ofUIViewwhich uses the Skyscanner style for labels containing tappable text.Declaration
Objective-C
@interface BPKTappableLinkLabel : UIViewSwift
class BPKTappableLinkLabel : UIView -
See moreBPKTextFieldis a subclass ofUITextFieldwhich uses the Skyscanner style.Declaration
Objective-C
@interface BPKTextField : UITextFieldSwift
class BPKTextField -
See moreBPKTextViewis a subclass ofUITextViewwhich uses the Skyscanner style.Declaration
Objective-C
@interface BPKTextView : UITextViewSwift
class BPKTextView -
A view controller that manages wrapping a view hierarchy in a view. The view controller hierarchy and thus view hierarchy contained in the controller is conditionally rendered inside a container. By leveraging the container relationship consumers can use
See moreUIAppearanceto alter the look of all views rendered within the container.Declaration
Objective-C
@interface BPKContainerController : UIViewControllerSwift
class BPKContainerController : UIViewController -
A subclass of BPKContainerController which manages the application of a theme.
The view controller hierarchy and thus view hierarchy contained in the controller is conditionally rendered inside a container. By leveraging the container relationship consumers can use
See moreUIAppearanceto alter the look of all views rendered within the container.Declaration
Objective-C
@interface BPKThemeContainerController : BPKContainerControllerSwift
class BPKThemeContainerController : BPKContainerController -
See moreBPKToastis a subclass ofUIViewconfigured with Skyscanner style properties.Declaration
Objective-C
@interface BPKToast : UIViewSwift
class BPKToast : UIView
Classes Reference