Skip to content

Commit

Permalink
Account for insets when applying orthogonal alignment in view distrib…
Browse files Browse the repository at this point in the history
…ution
  • Loading branch information
NickEntin committed Aug 29, 2024
1 parent 773b5fe commit 7e6e6e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions Paralayout/UIView+Distribution.swift
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,9 @@ extension UIView {
fatalError("Unknown user interface layout direction")
}

frame = frame.inset(by: insets)
applyOrthogonalAlignment(&frame, layoutBounds)
frame = frame.outset(by: insets)

subview.untransformedFrame = frame

Expand Down

0 comments on commit 7e6e6e0

Please sign in to comment.