converted Blends to swift