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
But after I replace the code with the macro expaned code, the error goes away.🤣
staticvar__associated_autoMaskViewKey:UInt8=0privatevarautoMaskView:UIView{get{
if let value =objc_getAssociatedObject(self,&Self.__associated_autoMaskViewKey
)as?UIView{return value
}letvalue={letview=UIView()
view.bk_(whenTapped:{[weak self]inself?.window?.endEditing(true)})return view
}()objc_setAssociatedObject(self,&Self.__associated_autoMaskViewKey,
value,.OBJC_ASSOCIATION_RETAIN_NONATOMIC
)return value
}set{objc_setAssociatedObject(self,&Self.__associated_autoMaskViewKey,
newValue,.OBJC_ASSOCIATION_RETAIN_NONATOMIC
)}}
The text was updated successfully, but these errors were encountered:
This code get an error:
Value of type '(UIView) -> () -> UIView' has no member 'window'
But after I replace the code with the macro expaned code, the error goes away.🤣
The text was updated successfully, but these errors were encountered: