Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CustomizableActionSheet/CustomizableActionSheet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,13 @@ public class CustomizableActionSheet: NSObject {
}
let positionX: CGFloat = safeAreaLeft
var positionY: CGFloat = targetBounds.minY + targetBounds.height - currentPosition - safeAreaBottom
var moveY: CGFloat = positionY
var moveY: CGFloat = currentPosition
if self.position == .top {
positionY = CustomizableActionSheet.kItemInterval
moveY = -currentPosition
}
// Reset transform from dismiss() if this CustomizableActionSheet is being reused.
self.itemContainerView.transform = CGAffineTransform.identity
self.itemContainerView.frame = CGRect(
x: positionX,
y: positionY,
Expand Down
4 changes: 3 additions & 1 deletion Source/CustomizableActionSheet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,13 @@ public class CustomizableActionSheet: NSObject {
}
let positionX: CGFloat = safeAreaLeft
var positionY: CGFloat = targetBounds.minY + targetBounds.height - currentPosition - safeAreaBottom
var moveY: CGFloat = positionY
var moveY: CGFloat = currentPosition
if self.position == .top {
positionY = CustomizableActionSheet.kItemInterval
moveY = -currentPosition
}
// Reset transform from dismiss() if this CustomizableActionSheet is being reused.
self.itemContainerView.transform = CGAffineTransform.identity
self.itemContainerView.frame = CGRect(
x: positionX,
y: positionY,
Expand Down