I'm interested in creating bezier curves on a path based on imported GPX data and understand how to implement turf.js for web. But how would I implement this for iOS? Specifically, if I am using a Mapbox hosted map in iOS, how do I apply the turf.js to enable that, or is there an alternative way of getting an OSM Mapbox or Leaflet map into iOS (and, importantly, for offline caching)?
I am not very familiar with iOS development, or the specifics of your implementation, but the bezier curve algorithm is actually pretty straightforward and well documented. If there is not already an iOS lib around, you could implement basic linear interpolation in a one liner: