diff --git a/Sources/AnyShape.swift b/Sources/AnyShape.swift index c5163fa..cbb0d68 100644 --- a/Sources/AnyShape.swift +++ b/Sources/AnyShape.swift @@ -3,16 +3,16 @@ import SwiftUI @available(iOS 13.0, *) @available(macOS 12.0, *) public struct AnyShape: Shape { - public init(_ wrapped: S) { - _path = { rect in - let path = wrapped.path(in: rect) - return path - } + public init(_ wrapped: S) { + _path = { rect in + let path = wrapped.path(in: rect) + return path } + } - public func path(in rect: CGRect) -> Path { - return _path(rect) - } - - private let _path: (CGRect) -> Path + public func path(in rect: CGRect) -> Path { + return _path(rect) + } + + private let _path: (CGRect) -> Path } diff --git a/Sources/CustomViews/HighlightableButton.swift b/Sources/CustomViews/HighlightableButton.swift index fb886ec..e272a6f 100644 --- a/Sources/CustomViews/HighlightableButton.swift +++ b/Sources/CustomViews/HighlightableButton.swift @@ -3,31 +3,32 @@ import SwiftUI @available(iOS 13.0, *) @available(macOS 12.0, *) public struct HighlightableButton