Skip to content
This repository was archived by the owner on Dec 27, 2020. It is now read-only.

Commit a3441f8

Browse files
authored
public grid preferences item init (#102)
1 parent c300abc commit a3441f8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/Grid/Styles/Style/GridPreferences.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ public struct GridPreferences: Equatable {
55
public struct Item: Equatable {
66
public let id: AnyHashable
77
public let bounds: CGRect
8+
9+
public init(id: AnyHashable, bounds: CGRect) {
10+
self.id = id
11+
self.bounds = bounds
12+
}
813
}
914

1015
public var items: [Item]

0 commit comments

Comments
 (0)