- Welcome
- Getting started
- Monthly update
- Foundations
-
Components
- Accordion
- Alert
- Alignment
- Aria Live
- Autosuggest
- Badge
- Banner Alert
- Bar Chart
- Blockquote
- Bottom Navigation
- Bottom Sheet
- Breadcrumb
- Breakpoint
- Button
- Calendar
- Card
- Card Button
- Carousel
- Checkbox
- Chip
- Code
- Content Cards
- Data Table
- Datepicker
- Description List
- Dialog
- Divider
- Drawer
- Field Set
- Flare
- Flat List
- Flight Leg
- Floating Action Button
- Floating Notification
- Form Label
- Form Validation
- Graphic Promotion
- Horizontal Navigation
- Icon
- Image
- Infinite Scroll
- Link
- List
- Map
- Mobile Scroll Container
- Modal
- Navigation Bar
- Nudger
- Overlay
- Page Indicator
- Pagination
- Panel
- Phone Input
- Picker
- Popover
- Price
- Progress Bar
- Radio Button
- Rating
- Scrollable Calendar
- Section List
- Select
- Skeleton
- Skip Link
- Slider
- Snackbar
- Spinner
- Split Input
- Star Rating
- Switch
- Table
- Text
- Text Input
- Theming
- Ticket
- Toast
- Tooltip
- Touchable Native Feedback
- Touchable Overlay
- Content
- Accessibility
Flare
The flare enables you to display content with a pointer to directional content.
Backpack-SwiftUI/Flare
All
Day | Night |
---|---|
![]() |
![]() |
Usage
BPKFlareView receives a ViewBuilder that will be used to render the content of the flare.
Centering content in the flare
You'll need to add extra padding to the bottom or top of the content depending on the direction of the flare.
BPKFlareView {
Text("Hello World")
.padding(.bottom)
}
BPKFlareView(direction: .top) {
Text("Hello World")
.padding(.top)
}
Medium Flare Size
BPKFlareView {
Text("Hello World")
}
Rect Corners
BPKFlareView(roundedCorners: false) {
Text("Hello World")
}
Direction Top
BPKFlareView(direction: .top) {
Text("Hello World")
}
Small Flare Size
```swift
BPKFlareView(size: .small) {
Text("Hello World")
}
### Large Flare Size
swift
BPKFlareView(size: .large) {
Text("Hello World")
}
```
Made with ❤️ by Skyscanner © 2023
© 2023 Skyscanner Backpack. Page last updated on Apr 28, 2023, 02:23