Open whlsxl opened 5 years ago
simulator is OK, device show this warning, find someone have same issue on iPhone Xs
iPhone X
Seems to be Apple iOS 12 weirdness, see this open radar ticket http://www.openradar.me/45003816
Thanks @stefanrenne That's true, but run the code above, the warning must show, maybe some API from apple, trigger this warning.
Same issue on iPhone XR
Same issue, iPhone XR, iOS 12.1.4, presenting from main thread, async.
same issue happening to me, any updates?
iPhone XS: iOS 12.1.4
Running Xcode 10.2 with Swift 5. This warning is now causing main thread freezes.
Same issue, weirdly the freeze happens only after the HUD is being shown for the first time per the app's instance. Next calls, and calls made after a restart are not blocking.
Same here Xcode 10.2, Swift 5, IPhone XS, only happens on first show. Any workaround or fix ?
Checked: Only happened when debugging. Run without debugger or run release is fine (Not cause freezes main thread)
Does anyone know if there is a temporary workaround for this?
I just found a solution / workaround for this, see my PR https://github.com/pkluz/PKHUD/pull/252
I just found a solution / workaround for this, see my PR #252 Is this merged to master ?
PKHUD : Version 5.3.0 Xcode :Version 10.2.1 (10E1001) iOS : 12.2 Device : iPhoneXs
It has not been cured yet
@tomoki69386 same PKHUD: 5.3.0 Xcode: Version 10.2.1 (10E1001) iOS 12.3.1 Device iPhone XS
Still reproduces and looks like it happens only on first show() call.
same issue in iphone xr iphone xs and just occured in first call
A temporary fix is to remove/comment-out UIInterpolatingMotionEffect
from FrameView.commonInit
as:
private func commonInit() {
backgroundColor = UIColor(white: 0.8, alpha: 0.36)
layer.cornerRadius = 9.0
layer.masksToBounds = true
contentView.addSubview(content)
// let offset = 20.0
//
// let motionEffectsX = UIInterpolatingMotionEffect(keyPath: "center.x", type: .tiltAlongHorizontalAxis)
// motionEffectsX.maximumRelativeValue = offset
// motionEffectsX.minimumRelativeValue = -offset
//
// let motionEffectsY = UIInterpolatingMotionEffect(keyPath: "center.y", type: .tiltAlongVerticalAxis)
// motionEffectsY.maximumRelativeValue = offset
// motionEffectsY.minimumRelativeValue = -offset
//
// let group = UIMotionEffectGroup()
// group.motionEffects = [motionEffectsX, motionEffectsY]
//
// addMotionEffect(group)
}
I test
PKHUD
inviewDidAppear
still got Thread Error, but I'm sure
HUD
run in main thread!opened :
Main thread checker
Xcode :Version 10.1 (10B61)
iOS :12.1.1
Device :iPad 11"