Skip to content

Commit 5317b3d

Browse files
authored
Update README.md
1 parent c56256e commit 5317b3d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,13 @@ Want to drop iOS 13 support and move to the SwiftUI 2.0 version?
114114

115115
1. Remove the Package
116116
2. Add this extension:
117+
117118
```swift
118119
extension View {
119120
public func scrollId<ID: Hashable>(_ id: ID) -> some View {
120121
id(id)
121122
}
122123
}
123124
```
125+
124126
(Or replace all .scrollId with .id)

0 commit comments

Comments
 (0)