KLCPopup
KLCPopup copied to clipboard
ContentView is not removed from superview when dismiss
I declare a global variable(KLCPopup), and find contentView is not remove from popup after dismiss the popup. And show a new contentView by the popup, there are actually two contentViews in the popup.
I know there is a callback(didFinishDismissingCompletion), user can add
contentView.removeFromSuperView()
into the callback.
But I do not think everyone want to add the extra code.
Is my thought wrong?