Updated UIImageMasking.swift

UIImageMasking.swift is now compatible with the current version of swift!