Can you guys help?
The message seems very explicit, more than your question which isn't even formulated.
You use posts before it is created. You could just write:
@State var payer = AVPlayer(url: URL(string: "")
State var should be initialised to its real value somewhere else in your code (normally).
Note: when you post code, please post it as text, not only screen capture.