iOS: Make more use of native Swift types