Skip to content

Commit 1e42719

Browse files
committed
Genericize CGRect point array initializer
1 parent f899346 commit 1e42719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Geometry/Extensions/CoreGraphics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ extension CGRect {
150150
self.init(points)
151151
}
152152

153-
public init(_ points: [CGVectorType]) {
153+
public init(_ points: some Collection<CGVectorType>) {
154154
if points.isEmpty {
155155
self = .null
156156
return

0 commit comments

Comments
 (0)