Support of newest version of swift

Newest version of swift doesn't support string.positionOf?