Swift Max-heap Resources