Skip to content

Commit c988ee4

Browse files
authored
Add InsetViewModifier (#424)
1 parent e492250 commit c988ee4

File tree

4 files changed

+634
-4
lines changed

4 files changed

+634
-4
lines changed

Sources/OpenSwiftUICore/Layout/Alignment/AlignmentGuide.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,7 @@ public struct AlignmentKey: Hashable, Comparable {
12431243
@inline(__always)
12441244
var index: Int { Int(bits / 2 - 1) }
12451245

1246-
package init(id: AlignmentID.Type, axis: Axis) {
1246+
package init(id: any AlignmentID.Type, axis: Axis) {
12471247
let index = Self.$typeCache.access { cache in
12481248
let identifier = ObjectIdentifier(id)
12491249
if let value = cache.typeIDs[identifier] {

Sources/OpenSwiftUICore/Layout/LayoutComputer/LayoutComputer.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ extension StatefulRule where Value == LayoutComputer {
252252
} create: {
253253
engine
254254
}
255-
256255
}
257256

258257
package mutating func updateIfNotEqual<E>(to engine: E) where E: Equatable, E: LayoutEngine {

0 commit comments

Comments
 (0)