Declarations

Hello All!

I am a future app developer for MacOS within SwiftUI. Currently learning and designing an app, though I wanted some help and advice within for example:

@interface AVPlayer : NSObject

I don't understand what it means? - Does anyone have a clear explanation or a video I could watch?

Please find the link below from where I found this, also it's things like the declaration for .play() or .skip() etc..

#StillLearning

https://developer.apple.com/documentation/avfoundation/avplayer?language=occ
Answered by OOPer in 665055022

I don't understand what it means?

It's an interface declaration of the class in Objective-C.

You cannot use Objective-C in SwiftUI and just ignore the Objective-C versions of documentation.

Visit the Swift version of documentation:
https://developer.apple.com/documentation/avfoundation/avplayer


Or you want to learn a classical way of developing apps, in addition to learning SwiftUI?
It may be a long way.
Learning Objective-C would benefit some parts of your developing apps, but it may not be the first place to go.
Accepted Answer

I don't understand what it means?

It's an interface declaration of the class in Objective-C.

You cannot use Objective-C in SwiftUI and just ignore the Objective-C versions of documentation.

Visit the Swift version of documentation:
https://developer.apple.com/documentation/avfoundation/avplayer


Or you want to learn a classical way of developing apps, in addition to learning SwiftUI?
It may be a long way.
Learning Objective-C would benefit some parts of your developing apps, but it may not be the first place to go.
@OOPer Thank you for your help.

I am very new to SwiftUI however really enjoying learning it. I am just currently watching: https://developer.apple.com/videos/play/wwdc2019/503/

Thank you for the link, I shall take a dive into it! 😄💻🖥
Declarations
 
 
Q