StripesShape

public struct StripesShape : Shape

A slicing pattern consisting of multiple rectangle shapes.

Source inspired by SwiftUI-Lab

  • When true the animation will enlarge the view, when false the animation will shrink the view.

    Declaration

    Swift

    public let insertion: Bool
  • The number of stripes to use.

    Declaration

    Swift

    public let stripes: Int
  • When true then the stripes will be layed horizontally, otherwise vertically.

    Declaration

    Swift

    public let horizontal: Bool
  • When false then the horizontal animation is intended to the bottom, when true then to the top. When false then the vertical animation is intended to the right, when true then to the left.

    Declaration

    Swift

    public let inverted: Bool
  • Declaration

    Swift

    public var animatableData: CGFloat
  • Declaration

    Swift

    public func path(in rect: CGRect) -> Path