Init for Swift project