Structures
The following structures are available globally.
-
Declaration
Swift
public struct BPKAppSearchModal : View
-
Declaration
Swift
public struct BPKAppSearchModalContent : Equatable
-
Declaration
Swift
public struct BPKAppSearchModalLoading : Equatable
-
Declaration
Swift
public struct BPKAppSearchModalError
extension BPKAppSearchModalError: Equatable
-
Declaration
Swift
public struct BPKAppSearchModalAction
-
A view that displays one line of text with an optional icon By default the style of BPKBadge is set to
.normal
Use
See morebadgeStyle(_ style: BPKBadge.Style)
to change the style of the badgeDeclaration
Swift
public struct BPKBadge : View
-
A view that displays an icon and a non-editable text.
See moreDeclaration
Swift
public struct BPKBannerAlert : View
-
Declaration
Swift
public struct BPKBottomSheetAction
-
Declaration
Swift
public struct BPKButton : View
-
Create a multi-selection configuration with given accessibility strings.
See moreDeclaration
Swift
public struct RangeAccessibilityConfigurations
Parameters
startSelectionHint
The hint provided to assistive technologies informing a user how to select the first date in the range.
endSelectionHint
The hint provided to assistive technologies informing a user how to select the second date in the range.
startSelectionState
The label provided to assistive technologies informing a user that a date is selected as the first date in the range.
endSelectionState
The label provided to assistive technologies informing a user that a date is selected as the second date in the range.
betweenSelectionState
The label provided to assistive technologies informing a user that a date lies between the first and second selected dates.
startAndEndSelectionState
The label provided to assistive technologies informing a user that a date is selected as both the first and second date in the range.
returnDatePrompt
The prompt provided to assistive technologies informing a user that they should now select a second date.
-
Create a single-selection configuration with given accessibility strings.
See moreDeclaration
Swift
public struct SingleAccessibilityConfigurations
Parameters
selectionHint
The hint provided to assistive technologies informing a user how to select a date.
-
BPKCalendar
is a SwiftUI view that represents a calendar.This view is designed to be customizable and flexible. It allows you to specify the type of selection, the calendar system, and the valid range of dates.
The
See moreBPKCalendar
view also allows you to specify an accessory action. This is a closure that takes a string and a date, and is called when the user interacts with an accessory in the calendar.Declaration
Swift
public struct BPKCalendar<DayAccessoryView> : View where DayAccessoryView : View
Parameters
selectionType
The type of selection that the calendar should support. This can be single, range, or multiple.
calendar
The calendar system that the calendar should use. This can be any calendar system supported by the
Calendar
struct in Swift.validRange
The range of dates that the calendar should allow the user to select. This is specified as a
ClosedRange<Date>
. -
See moreCalendarMonthAccessoryAction
is a type alias for a closure that represents an action to be performed when a user interacts with an accessory in the calendar.Declaration
Swift
public struct CalendarMonthAccessoryAction
-
Declaration
-
Declaration
Swift
public struct BPKCardWrapper<HeaderContent, WrappedContent> : View where HeaderContent : View, WrappedContent : CardWrappable
-
Declaration
Swift
public struct BPKDividedCard<PrimaryContent, SecondaryContent> : View where PrimaryContent : View, SecondaryContent : View
extension BPKDividedCard: CardWrappable
-
Declaration
Swift
public struct BPKSaveCardButton : View
-
Declaration
Swift
public struct BPKShareCardButton : View
-
Declaration
Swift
public struct BPKCardCarousel<Content> : View where Content : View
-
Declaration
Swift
public struct BPKCardList<Element, Content> : View where Element : Identifiable, Content : View
-
Declaration
Swift
public struct BPKCarousel<Content> : View where Content : View
-
Declaration
Swift
public struct BPKCarouselCard<Content> : View where Content : View
-
Declaration
Swift
public struct BPKChip : View
-
Declaration
Swift
public struct BPKDismissableChip : View
-
Declaration
Swift
public struct BPKDropdownChip : View
-
A Group of chips that allows multiple chips to be selected at a time.
See moreDeclaration
Swift
public struct BPKMultiSelectChipGroup : View
-
A Group of chips that allows a single chip to be selected at a time.
See moreDeclaration
Swift
public struct BPKSingleSelectChipGroup : View
-
Declaration
Swift
public struct BPKColor : Sendable
-
A button to be used in a dialog.
See moreDeclaration
Swift
public struct BPKDialogButton
-
Declaration
Swift
public struct BPKDialogSecondaryActions
-
A component which wraps its content (view) and optionally adds a title, description and error label (depending on the field’s state) around it. Supported states are Default, and Error. The states are dispatched to the wrapped view through the .environment modifier.
Use
inputState(_ state: State)
to change the state of the field set.Use
See moreaccessibilityPrefix(_ prefix: String)
to add a prefix to each accessibilityIdentifier that gets added to all fieldset’s subcomponentsDeclaration
Swift
public struct BPKFieldSet<Content> : View where Content : View
-
A view that clips its content to a shape with a flare at one end.
See moreDeclaration
Swift
public struct BPKFlareView<Content> : View where Content : View
-
BPKFlowStackView
is a SwiftUI view that arranges its children in a grid with a flexible number of columns and rows.This view adjusts the number of columns based on the available width and the widths of the children. If a child does not fit in the current row, it is placed in the next row.
See moreDeclaration
Swift
public struct BPKFlowStackView<Data, Content> : View where Data : Collection, Content : View, Data.Element : Hashable
-
Declaration
Swift
public struct BPKFont
-
Declaration
Swift
public struct BPKRelativeFontDefinition : BPKFontDefinition
-
Declaration
Swift
public struct FallbackFontDefinition : BPKFontDefinition
-
Declaration
Swift
public struct BPKFontStyle
-
Declaration
Swift
public struct BPKGraphicPromo : View
-
Declaration
Swift
public struct BPKHorizontalNavigation : View
-
Declaration
Swift
public struct BPKIcon
-
Declaration
Swift
public struct BPKIconView : View
-
Declaration
Swift
public struct BPKImageGalleryChipCategory<GridImageView, SlideshowImageView> where GridImageView : View, SlideshowImageView : View
-
Declaration
Swift
public struct BPKImageGalleryImageCategory<CategoryImageView, GridImageView, SlideshowImageView> where CategoryImageView : View, GridImageView : View, SlideshowImageView : View
-
Declaration
Swift
public struct BPKImageGalleryPreview<Content> : View where Content : View
-
Declaration
Swift
public struct BPKSlideshowGalleryImage<Content> where Content : View
-
Declaration
Swift
public struct BPKGridGalleryImage<Content> where Content : View
-
Declaration
Swift
public struct BPKInsetBanner<LogoContent> : View where LogoContent : View
-
Declaration
Swift
public struct BPKPoiMapMarker : View
-
Declaration
Swift
public struct BPKPointerMapMarker : View
-
Declaration
Swift
public struct BPKPriceMapMarker : View
-
Declaration
Swift
public struct BPKNavigationView<Content> : View where Content : View
-
Declaration
Swift
public struct BPKNavigationBarItem
-
A Group of tabs that allows a single tab to be selected at a time.
See moreDeclaration
Swift
public struct BPKNavigationTabGroup : View
-
Declaration
Swift
public struct BPKNudger : View
-
Declaration
Swift
public struct BPKPageIndicator : UIViewRepresentable
-
Declaration
Swift
public struct BPKPanel<Content> : View where Content : View
-
Declaration
Swift
public struct BPKPrice : View
-
Declaration
Swift
public struct BPKProgressBar : View
-
Declaration
Swift
public struct BPKCornerRadius
-
Declaration
Swift
public struct BPKRating<Content> : View where Content : View
-
Declaration
Swift
public struct BPKRatingBar : View
-
An actionable control field that displays an text and an icon.
See moreDeclaration
Swift
public struct BPKSearchControlInput : View
-
A control that displays an editable text interface for search inputs.
Use
See moreinputState(_ state: State)
to change the state of the text field.Declaration
Swift
public struct BPKSearchInputSummary : View
-
Declaration
Swift
public struct BPKSectionHeader : View
-
Declaration
Swift
public struct BPKSelect : View
-
Declaration
Swift
public struct BPKShadow
-
Declaration
Swift
public struct BPKSkeleton : View
-
A view that displays a horizontal slider with two thumbs.
See moreDeclaration
Swift
public struct BPKRangeSlider : View
-
A view that displays a horizontal slider with a thumb that can be dragged to select a value.
See moreDeclaration
Swift
public struct BPKSlider : View
-
Declaration
Swift
public struct BPKSnippet : View
-
A struct containing the values for the spacing tokens.
The spacing tokens are used to define the spacing between components.
Example usage:
See moreBPKText("Text with BPKSpacing.md padding") .padding(.md) HStack(spacing: .md) { BPKText("Text with BPKSpacing.md spacing") BPKText("Text with BPKSpacing.md spacing") }
Declaration
Swift
public struct BPKSpacing : Sendable
-
Declaration
Swift
public struct BPKSpinner : View
-
A view that displays a star rating based on a rating value.
See moreDeclaration
Swift
public struct BPKHotelStarRating : View
-
A view that displays a star rating based on a rating value.
See moreDeclaration
Swift
public struct BPKStarRating : View
-
A control that toggles between on and off states.
You create a switch by providing an
See moreisOn
binding and a label. BindisOn
to a Boolean property that determines whether the switch is on or off. Set the label to a view that visually describes the purpose of switching between toggle statesDeclaration
Swift
public struct BPKSwitch<Content> : View where Content : View
-
A view that displays a variety of Text items based on the styles and colors provided during creation Set the
See moreitems
when creating this view.Declaration
Swift
public struct BPKAttributedText : View
-
A view that displays one or more lines of text By default the color of BPKText is set to
BPKColor.textPrimary
with a lineLimit of 1Use
See moreforegroundColor(_ color: BPKColor)
to change the color of the text UselimeLimit(_ number: Int?)
to set the number of lines can be displayed. Pass innil
for unlimited linesDeclaration
Swift
public struct BPKText : View
-
Declaration
Swift
public struct BPKTextArea : View
-
A control that displays an editable text interface.
Use
See moreinputState(_ state: State)
to change the state of the text field.Declaration
Swift
public struct BPKTextField : View