Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

Im trying to use videoMaterial on a obj in Xcode 16, I'm lost.

I believe I have created a videoMaterial and assigned it to a mesh with code I found in the Developer's Documentation but Im getting this error.

"Trailing closure passed to parameter of type 'String' that does not accept a closure"

I have attached a photo of the code and where the error happens.

Any help will greatly be appreciated.

Im trying to use videoMaterial on a obj in Xcode 16, I'm lost.
 
 
Q