gridmap with swift