Update README.md

This commit is contained in:
Amzd 2020-12-26 23:56:47 +01:00 committed by GitHub
parent c56256e6b0
commit 5317b3de65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,7 @@ 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 {
@ -121,4 +122,5 @@ extension View {
}
}
```
(Or replace all .scrollId with .id)