Skip to content

Commit 4352213

Browse files
committed
Fixed observing native margins and safe area.
1 parent 015c7b3 commit 4352213

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Sources/NativeUIKit/Controls/NativeLargeActionButton.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ open class NativeLargeActionButton: SPDimmedButton {
4343

4444
open override func commonInit() {
4545
super.commonInit()
46+
insetsLayoutMarginsFromSafeArea = false
47+
preservesSuperviewLayoutMargins = false
4648
titleLabel?.font = UIFont.preferredFont(forTextStyle: .headline, addPoints: 1)
4749
titleLabel?.numberOfLines = 1
4850
highlightOpacity = NativeAppearance.actionable_element_highlight_opacity

0 commit comments

Comments
 (0)