Someone else must have received this message while (or after) converting an iOS project to Swift 3, yet when I do a Google search, I get no relevant results.
Anyway,
The expected type is Any but the type provided was UIView?
Any
UIView?
The problem is with the optional, just make sure an instance of UIView is passed and things would work.
UIView