If willChangeOrientation() called when swipeMenuView is not appeared, layoutSubviews() may not be called.
In that case, isLayoutingSubviews keeps to true. various problems occur.
For example, updateTabViewAddition(by:) and update(from:to:) will not be called
Problem
If
willChangeOrientation()
called whenswipeMenuView
is not appeared,layoutSubviews()
may not be called. In that case,isLayoutingSubviews
keeps to true. various problems occur. For example,updateTabViewAddition(by:)
andupdate(from:to:)
will not be calledRef: https://github.com/yysskk/SwipeMenuViewController/blob/master/Sources/SwipeMenuView.swift#L408
Solution
I added
setNeedsLayout()
inwillChangeOrientation()
.layoutSubviews
always be called.