Skip to content

Commit

Permalink
Merge pull request #45 from RakuyoKit/feature/uiview+extension
Browse files Browse the repository at this point in the history
feat: Add `removeLayoutMargins` to UIView+RAK
  • Loading branch information
rakuyoMo authored Jun 15, 2024
2 parents 034187a + 17aed78 commit 714b1df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/Core/Extensions/UIView+RAK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,10 @@ extension Extendable where Base: UIView {
}
}
}

public func removeLayoutMargins() {
base.layoutMargins = .zero
base.insetsLayoutMarginsFromSafeArea = false
}
}
#endif

0 comments on commit 714b1df

Please sign in to comment.