Fixed several compiler errors for Swift 4.x
Fixed several compiler errors for Swift 4.x

- Fixed error where kCAFillModeForwards was changed to .forwards

- remove force unpack: as! -> as?
matvdg/Gradient-View