From a038a5fb656b731709f30ae7fbc6daf24c8b51e1 Mon Sep 17 00:00:00 2001 From: Amzd Date: Sat, 26 Dec 2020 22:10:14 +0100 Subject: [PATCH] Update README.md to make it work with Ink --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b2bd013..13edffd 100644 --- a/README.md +++ b/README.md @@ -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