update swift pointer

Fixes swift on Mac.