Skip to content

Commit

Permalink
Adding fittingSize on UIView to mirror NSView's method.
Browse files Browse the repository at this point in the history
  • Loading branch information
michelf committed Jan 10, 2024
1 parent 42f1e3d commit 48299e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/MFXUI/UX.swift
Original file line number Diff line number Diff line change
Expand Up @@ -281,4 +281,11 @@ extension UXApplication {

}

extension UXView {

public var fittingSize: CGSize {
sizeThatFits(CGSize(width: 99999999, height: 99999999))
}
}

#endif

0 comments on commit 48299e5

Please sign in to comment.