Avatar
Avatar
shiz
Concurrencyを使っている場合は強制されるとあるので、今回は明示しなくて良いのではないんですかね? あれ?違うのか?Concurrency使っていればUIViewControllerの@MainActor(unsafe)が有効になるのかと思ってました。 https://twitter.com/rintaro/status/1442543055597301765 (edited)
よくわからないんですよね…。 NS_SWIFT_UI_ACTOR の定義を見ても私だと理解できず、、 https://github.com/uhooi/UhooiPicBook/pull/265/files#r770694602 #if __has_attribute(swift_attr) # define NS_SWIFT_UI_ACTOR __attribute__((swift_attr("@UIActor"))) #else # define NS_SWIFT_UI_ACTOR #endif
Issues close #223 close #260 Overview Use Swift Concurrency. Details Replace completion handler with async function Add @MainActor to All View ( UIViewController , UICollectionViewCell etc) All...