refine the code to swift style
Merge branch 'master' of github.com:liyong03/YLGIFImage-Swift