Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nnabeyang committed Jul 15, 2023
1 parent 22ee6f3 commit 2fb4443
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/SVGUIView/element/SVGClipPathElement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ struct SVGClipPathElement: SVGElement {
if let display = content.display, case .none = display {
continue
}
guard let bezierPath = content.toClipedBezierPath(context: context) else { continue }
guard let bezierPath = content.toClippedBezierPath(context: context) else { continue }
bezierPath.apply(content.transform.concatenating(transform))
var tpath = bezierPath.cgPath
let clipRule = content.clipRule ?? clipRule ?? false
Expand Down
6 changes: 3 additions & 3 deletions Sources/SVGUIView/element/SVGElement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protocol SVGDrawableElement: SVGElement {
func use(attributes: [String: String]) -> Self
func toBezierPath(context: SVGContext) -> UIBezierPath?
@available(iOS 16.0, *)
func toClipedBezierPath(context: SVGContext) -> UIBezierPath?
func toClippedBezierPath(context: SVGContext) -> UIBezierPath?
func applySVGStroke(stroke: SVGUIStroke, path: UIBezierPath, context: SVGContext)
func applySVGFill(fill: SVGFill?, path: UIBezierPath, context: SVGContext)
}
Expand Down Expand Up @@ -158,7 +158,7 @@ extension SVGDrawableElement {
}

@available(iOS 16.0, *)
func toClipedBezierPath(context: SVGContext) -> UIBezierPath? {
func toClippedBezierPath(context: SVGContext) -> UIBezierPath? {
guard let path = toBezierPath(context: context) else { return nil }
let frame = frame(context: context, path: path)
let result: UIBezierPath
Expand Down Expand Up @@ -194,7 +194,7 @@ extension SVGDrawableElement {
}
let path: UIBezierPath?
if #available(iOS 16.0, *), type != .line {
path = toClipedBezierPath(context: context)
path = toClippedBezierPath(context: context)
} else {
path = toBezierPath(context: context)
if let path = path {
Expand Down

0 comments on commit 2fb4443

Please sign in to comment.