looks like you're using the web api instead of the IOS sdk? any reason for that? is the ios sdk not in swift yet ? It was a pain to setup the last time i looked at it.
The documentation for the iOS Sdk is terrible. It's also in Obj-c. The Web API is pretty clear and we all love JSON. The only thing I could see myself using the iOS Sdk for is remote playing.