How to use generic protocol as a variable type How to use generic protocol as a variable type xcode xcode