Horje
add shadow to collection view cell swift Code Example
add shadow to collection view cell swift
self.contentView.layer.cornerRadius = 2.0
self.contentView.layer.borderWidth = 1.0
self.contentView.layer.borderColor = UIColor.clear.cgColor
self.contentView.layer.masksToBounds = true

self.layer.shadowColor = UIColor.black.cgColor
self.layer.shadowOffset = CGSize(width: 0, height: 2.0)
self.layer.shadowRadius = 2.0
self.layer.shadowOpacity = 0.5
self.layer.masksToBounds = false
self.layer.shadowPath = UIBezierPath(roundedRect: self.bounds, cornerRadius: self.contentView.layer.cornerRadius).cgPath




Swift

Related
swift notifications mac Code Example swift notifications mac Code Example
swift open url Code Example swift open url Code Example
swift check if string contains string Code Example swift check if string contains string Code Example
delay code execution swift 5 Code Example delay code execution swift 5 Code Example
firebase crashlytics dsym missing Code Example firebase crashlytics dsym missing Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
15