You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This situation still exists when using pod 'SVProgressHUD', '~> 2.3.1'. It cannot be said to be a problem, but it can only be said to be related to the mechanism;
The SVProgressHUD.setContainerView method globally modifies the displayed container. This is how I handle it. After the page using SVProgressHUD.setContainerView is destroyed, I call SVProgressHUD.setContainerView(nil) again.
/// Device connection animation
static func cnctAnimate(content: String = "Connecting".localized, forView: UIView? = nil) {
SVProgressHUD.setMinimumSize(CGSize(width: 200, height: 100))
SVProgressHUD.setDefaultStyle(.custom)
SVProgressHUD.setBackgroundColor(.systemGroupedBackground)
SVProgressHUD.setForegroundColor(.black)
SVProgressHUD.setDefaultMaskType(.black)
SVProgressHUD.show(withStatus: content)
if let view = forView {
SVProgressHUD.setContainerView(view)
SVProgressHUD.setOffsetFromCenter(UIOffset(horizontal: -view.origin.x, vertical: -view.origin.y - kNavBarAndSafeHeight/2))
}
}
// FIXME: There is a problem with the use of setContainerView. It must be restored after use, otherwise the prompt added to the window will not be displayed.
static func dismissAnimate() {
SVProgressHUD.setContainerView(nil)
SVProgressHUD.setOffsetFromCenter(UIOffset.zero)
}
Similar to #812
This situation still exists when using pod 'SVProgressHUD', '~> 2.3.1'. It cannot be said to be a problem, but it can only be said to be related to the mechanism;
The SVProgressHUD.setContainerView method globally modifies the displayed container. This is how I handle it. After the page using SVProgressHUD.setContainerView is destroyed, I call SVProgressHUD.setContainerView(nil) again.
使用pod 'SVProgressHUD', '~> 2.3.1'还是存在这个情况, 不能说是问题, 只能说和机制相关;
SVProgressHUD.setContainerView 方法是全局修改了展示的容器, 我是这么处理的, 在使用完SVProgressHUD.setContainerView的页面销毁后, 再调用 SVProgressHUD.setContainerView(nil),
The text was updated successfully, but these errors were encountered: