Reproducing a problem transitioning from Obj-C to Swift