Skip to content

Commit

Permalink
unwanted change
Browse files Browse the repository at this point in the history
  • Loading branch information
frugoman committed Aug 4, 2023
1 parent c89ba5e commit 8093f87
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions Backpack-SwiftUI/Flare/Classes/FlarePath.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,11 @@ import SwiftUI
struct FlarePath: Shape {
/// The height of the flare.
let flareHeight: CGFloat
let flareWidth: CGFloat
/// The corner radius of the rounded rectangle.
let cornerRadius: BPKSpacing
/// The direction of the flare.
let direction: BPKFlareDirection

init(flareHeight: CGFloat, flareWidth: CGFloat = 1, cornerRadius: BPKSpacing, direction: BPKFlareDirection) {
self.flareHeight = flareHeight
self.flareWidth = flareWidth
self.cornerRadius = cornerRadius
self.direction = direction
}


/// Creates a path with a flare at one end.
func path(in rect: CGRect) -> Path {
let size = rect.size
Expand Down Expand Up @@ -92,8 +84,6 @@ struct FlarePath: Shape {
struct FlarePath_Previews: PreviewProvider {
static var previews: some View {
VStack {
Color(.coreAccentColor)
.clipShape(FlarePath(flareHeight: 20, flareWidth: 2, cornerRadius: .xxl, direction: .bottom))
Color(.coreAccentColor)
.clipShape(FlarePath(flareHeight: 20, cornerRadius: .xxl, direction: .bottom))
Color(.coreAccentColor)
Expand Down

0 comments on commit 8093f87

Please sign in to comment.