Swift api