What do people still use Apache for? Hasn't everyone moved onto Nginx?
Apache is more like an application server framework specifically targeted at executing custom code (hence modules). It is a little obscure and old fashioned but actually quite powerful and very flexible/customizable.
Since many current server side frameworks (say Node.js and all other Swift frameworks I know) do not really embed well into the server but are HTTP servers on their own, Nginx is often used as a frontend server in such contexts. It is very good for that (and Apache often overkill).
Anyways, running your code within Apache has pros&cons, as always. But this has little to do with Nginx vs Apache. (i.e. it may still make sense to use Nginx in front of Apache hosting a mod_swift application).