-
-
Notifications
You must be signed in to change notification settings - Fork 63
Popup Customization
Tomasz K. edited this page Oct 31, 2024
·
32 revisions
Czas to iluzja - oznajmił. Tym bardziej czas lunchu.
Popups can be customized from two places: globally during Setup or individually, during Popup Declaration. If a method with the same name is called locally, then the global setting for that popup will be overridden.
-
popupHorizontalPadding(_ value: CGFloat) -> Self
- Sets the horizontal padding of the popup.
- For
Top
,Centre
andBottom
popups.
-
cornerRadius(_ value: CGFloat) -> Self
- Sets the corner radius of the popup background.
- For
Top
,Centre
andBottom
popups.
-
backgroundColor(_ color: Color) -> Self
- Sets the background color of the popup.
- For
Top
,Centre
andBottom
popups.
-
overlayColor(_ color: Color) -> Self
- Sets the color of the overlay behind the popup.
- For
Top
,Centre
andBottom
popups.
-
tapOutsideToDismissPopup(_ value: Bool) -> Self
- Enables or disables the dismissal of the popup when touched outside.
- For
Top
,Centre
andBottom
popups.
-
popupTopPadding(_ value: CGFloat) -> Self
- Sets the top padding of the popup.
- For
Top
andBottom
popups.
-
popupBottomPadding(_ value: CGFloat) -> Self
- Sets the bottom padding of the popup.
- For
Top
andBottom
popups.
-
dragThreshold(_ value: CGFloat) -> Self
- Sets the drag threshold for dismissing the popup or moving to the next drag detent value.
- For
Top
andBottom
popups.
-
enableStacking(_ value: Bool) -> Self
- Enables or disables the visibility of stacked popups.
- For
Top
andBottom
popups.
-
enableDragGesture(_ value: Bool) -> Self
- Enables or disables the drag gesture for interacting with popups.
- For
Top
andBottom
popups.
-
popupHorizontalPadding(_ value: CGFloat) -> Self
- Sets the horizontal padding of the popup.
- For
Top
,Centre
andBottom
popups.
-
cornerRadius(_ value: CGFloat) -> Self
- Sets the corner radius of the popup background.
- For
Top
,Centre
andBottom
popups.
-
backgroundColor(_ color: Color) -> Self
- Sets the background color of the popup.
- For
Top
,Centre
andBottom
popups.
-
overlayColor(_ color: Color) -> Self
- Sets the color of the overlay behind the popup.
- For
Top
,Centre
andBottom
popups.
-
tapOutsideToDismissPopup(_ value: Bool) -> Self
- Enables or disables the dismissal of the popup when touched outside.
- For
Top
,Centre
andBottom
popups.
- ``
- a
- For
Top
andBottom
popups.
- ``
- a
- For
Top
andBottom
popups.
- ``
- a
- For
Top
andBottom
popups.
- ``
- a
- For
Top
andBottom
popups.
- ``
- a
- For
Top
andBottom
popups.
- ``
- a
- For
Top
andBottom
popups.