swift support implementation