Update ScrollViewProxy.swift
This commit is contained in:
parent
46e0309867
commit
57d7bed0dd
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue