I've been following the Scrumdinger tutorial and had close to no trouble understanding the concepts, supplementing myself with the Swift guide.
However, in the state and lifecycle lesson, exactly in the complete project, I've found confusing syntax that I cannot decipher with certainty.
private var player: AVPlayer { AVPlayer.sharedDingPlayer }
What does the closure after the AVPlayer
type mean?
sharedDingPlayer
is a static property extending AVPlayer
, so my guess is that it's either some kind of casting to this exact type or assigning the static prop to the player
property when it's available.
I would appreciate any help in clearing this out!