Skip to content

Fix warnings about using class for restricting protocols to classes.#21

Open
Zandor300 wants to merge 1 commit intoalberdev:masterfrom
Zandor300:fix/class-protocol-warnings
Open

Fix warnings about using class for restricting protocols to classes.#21
Zandor300 wants to merge 1 commit intoalberdev:masterfrom
Zandor300:fix/class-protocol-warnings

Conversation

@Zandor300
Copy link
Contributor

Using class to restrict protocols to just classes is deprecated. Instead we need to use AnyObject. This PR will get rid of 5 warnings:

Using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead

@alberdev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant