We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d3fed8f + d43cb95 commit 18d6109Copy full SHA for 18d6109
ZLSwipeableViewSwift/ViewManager.swift
@@ -173,6 +173,13 @@ class ViewManager : NSObject {
173
removeBehavior(snapBehavior)
174
}
175
176
+ func resnapView() {
177
+ if case .snapping(_) = state {
178
+ unsnapView()
179
+ state = snappingStateAtContainerCenter()
180
+ }
181
182
+
183
fileprivate func attachView(toPoint point: CGPoint) {
184
anchorView.center = point
185
anchorView.backgroundColor = UIColor.blue
ZLSwipeableViewSwift/ZLSwipeableView.swift
@@ -117,6 +117,9 @@ open class ZLSwipeableView: UIView {
117
override open func layoutSubviews() {
118
super.layoutSubviews()
119
containerView.frame = bounds
120
+ for viewManager in viewManagers.values {
121
+ viewManager.resnapView()
122
123
124
125
// MARK: Public APIs
0 commit comments