DroppyNotchShellShape
The U-shaped shell Droppy's notch surface is drawn in.
struct DroppyNotchShellShape
topCornerRadius is the outward wing at the top; bottomRadius is the inward corner at the bottom. Both are clamped so the path cannot self-cross at small frames, which fills as a bow-tie rather than failing.
Initializers
init(topCornerRadius:bottomRadius:insetAmount:)
init(topCornerRadius: CGFloat = 10, bottomRadius: CGFloat = 16, insetAmount: CGFloat = 0)
Properties
animatableData
var animatableData: AnimatablePair<AnimatablePair<CGFloat, CGFloat>, CGFloat> { get set }
bottomRadius
var bottomRadius: CGFloat
insetAmount
var insetAmount: CGFloat
topCornerRadius
var topCornerRadius: CGFloat
Methods
inset(by:)
func inset(by amount: CGFloat) -> DroppyNotchShellShape
path(in:)
func path(in rect: CGRect) -> Path