Add inner shadows to profile pics.

This commit is contained in:
Matthew Chen 2018-09-26 15:54:36 -04:00
parent 352777765e
commit 547724b5cf
1 changed files with 0 additions and 20 deletions

View File

@ -42,26 +42,6 @@ public class AvatarImageView: UIImageView {
}
override public func layoutSubviews() {
updateLayers()
}
@objc public override var bounds: CGRect {
didSet {
if oldValue != bounds {
updateLayers()
}
}
}
@objc public override var frame: CGRect {
didSet {
if oldValue != frame {
updateLayers()
}
}
}
private func updateLayers() {
self.layer.cornerRadius = self.frame.size.width / 2
// Inner shadow.