Update README.md to make it work with Ink

This commit is contained in:
Amzd 2020-12-26 22:10:14 +01:00 committed by GitHub
parent 3672768345
commit a038a5fb65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ public func scrollTo(_ alignment: Alignment, animated: Bool = true)
public func scrollTo(_ id: ID, alignment: Alignment = .top, animated: Bool = true)
```
To use the scroll to ID function you have to add an ID to the view you want to scroll to
To use the scroll to ID function you have to add an ID to the view you want to scroll to
```swift
ScrollView { proxy in
@ -48,7 +48,7 @@ ScrollView { proxy in
.scrollId("someId")
}
```
*This is the only part that is different from the SwiftUI 2.0 implementation because I don't know how to access Views by ID from the .id(_:) function
*This is the only part that is different from the SwiftUI 2.0 implementation because I don't know how to access Views by ID from the `.id(_:)` function*
## Example