Skip to content

Commit 8b77979

Browse files
authored
Update UIControlView.swift
1 parent a45b0be commit 8b77979

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Sources/UIControlView.swift

+8
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,14 @@ class UIControlView {
397397
let topPadding = UIControlViewHelper.getPadding(.top)
398398
let bottomPadding = UIControlViewHelper.getPadding(.bottom)
399399

400+
var bottomSpace: CGFloat {
401+
if bottomPadding.isZero {
402+
return 10
403+
} else {
404+
return 30
405+
}
406+
}
407+
400408
var getPrepare: CGFloat {
401409
if showWithSlideAnimation {
402410
return screen.height + bottomPadding + topPadding + currentConfig.viewHeight

0 commit comments

Comments
 (0)