Update ScrollViewProxy.swift

This commit is contained in:
Casper Zandbergen 2020-12-08 15:10:33 +01:00
parent 46e0309867
commit 57d7bed0dd
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ public struct ScrollViewProxy {
fileprivate init() {}
/// A publisher that publishes changes to the scroll views offset
public private(set) var offset: OffsetPublisher = Just(.zero).eraseToAnyPublisher()
public fileprivate(set) var offset: OffsetPublisher = Just(.zero).eraseToAnyPublisher()
/// Scrolls to an edge or corner
public func scrollTo(_ alignment: Alignment, animated: Bool = true) {