Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Amzd authored Dec 26, 2020
1 parent c56256e commit 5317b3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,13 @@ Want to drop iOS 13 support and move to the SwiftUI 2.0 version?

1. Remove the Package
2. Add this extension:

```swift
extension View {
public func scrollId<ID: Hashable>(_ id: ID) -> some View {
id(id)
}
}
```

(Or replace all .scrollId with .id)

0 comments on commit 5317b3d

Please sign in to comment.