avkit - Why does AVPlayerView not have a member named "player" in Swift -
i trying use avplayerview
in swift, compiler complaints cannot find member named player
in avplayerview
.
but avplayerview
have property called player
.
and other properties or methods fine. seems player
not recognized.
you explicitly have import avfoundation framework (which defines avplayer
class):
import avkit import avfoundation let playerview = avplayerview() let player = playerview.player
that might considered bug in (swift view of the) avkit framework.
Comments
Post a Comment