Post not yet marked as solved
Post marked as unsolved with 0 replies, 256 views
when I upgrade xcode13 and distribution some base components with xcframework, I got some issue below:
property 'bounds' isolated to global actor 'MainActor' can not be referenced from this synchronous context
17:49:37
17:49:37 @_Concurrency.MainActor(unsafe) public func setPlaceholder(text: Swift.String, Width: CoreGraphics.CGFloat = UIScreen.main.bounds.size.witdth)
when general swiftinterface file with Xcode13, will auto add @_Concurrency for some UI-related function. but UIKit property UIScreen.main.bounds.size.witdth is not mask as _Concurrency.
I try to add @objcMembers to swift Class, the problem is missed.
I think It's an Xcode13 issue~~~