Structures

The following structures are available globally.

  • Undocumented

    See more

    Declaration

    Swift

    @MainActor
    public struct ClearButtonModifier : ViewModifier
  • A re-created button view which looks like Apple’s color picker button. The problem with Apple’s color picker is that it’s directly linked to the color picker view, so there is no way to navigate first to a different screen before showing Apple’s color picker. To by-pass this shortcoming we can use this custom button.

    See more

    Declaration

    Swift

    @MainActor
    public struct ColorPickerButton : View
  • A customizable overlay button that takes a view as a base shape and returns it as an overlay, so that it can be customized (e.g frame for tappable area) without interfering with layout of surrounding objects.

    See more

    Declaration

    Swift

    @MainActor
    public struct OverlayButton<BaseShape, Content> : View where BaseShape : View, Content : View
  • Represents an activity for presenting an ActivityView (Share sheet) via the activitySheet modifier

    See more

    Declaration

    Swift

    public struct ActivityItem