Skip to content

Commit e9ae342

Browse files
committed
Don't overflow if user resets the layout cache 9 quintillion times
1 parent b660a51 commit e9ae342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/LayoutInspector/DebugLayoutImpl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct InspectLayout: ViewModifier {
1919
LogEntriesGrid(logEntries: logStore.log, highlight: $selectedView)
2020
.safeAreaInset(edge: .bottom) {
2121
Button("Reset layout cache") {
22-
generation += 1
22+
generation &+= 1
2323
}
2424
.buttonStyle(.bordered)
2525
.frame(maxWidth: .infinity)

0 commit comments

Comments
 (0)