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
{{ message }}
This repository has been archived by the owner on Aug 1, 2019. It is now read-only.
Here is my code:
private func createAvatar()->ASImageNode {
let avatar = ASImageNode()
avatar.backgroundColor = UIColor.lightGray
let side: CGFloat = 40
avatar.style.preferredSize = CGSize(width: side, height: side)
avatar.image = UIImage(named: "cartoon_chick")
avatar.layer.cornerRadius = side/2
return avatar
}
Even though I set value to cornerRadius my avatar images still square. How to fix it?
The text was updated successfully, but these errors were encountered: