Port DeviceLister to Swift.