Add shadow to UIView on all sides in Swift 4
IamtryingtoaddashadowtomyUIViewsusingacustomextensionthatIcreatedfortheUIViewclass.Hereisthecodefortheextension.,可從UserDefinedRuntimeAttributes設定三種常見的陰影效果,layer.shadowOpacity,layer.shadowOffset和layer.shadowRadius。,Ifyouwanttoadds...。參考影片的文章的如下: