complement of https://github.com/mapbox/mapbox-gl-cocoa/pull/36