Skip to content

Commit

Permalink
updated doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ezimet-livefront committed Jan 29, 2025
1 parent f925569 commit 4b03a4b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ extension View {
/// A view modifier that calculates the origin and size of the containing view.
///
/// - Parameters:
/// - id: A unique identifier for the view.
/// - perform: A closure called when the size or origin of the view changes.
/// - id: A unique identifier for the view. This is necessary to distinguish between multiple
/// views that might be using the same modifier, ensuring that the correct view's changes
/// are tracked and handled.
/// - perform: A closure called when the size or origin of the view changes. The closure receives
/// the new size and origin of the view as parameters.
/// - Returns: A copy of the view with the sizing and origin modifier applied.
///
func onFrameChanged(id: String, perform: @escaping (CGPoint, CGSize) -> Void) -> some View {
Expand Down

0 comments on commit 4b03a4b

Please sign in to comment.