add swift_compatibility