Adding @objc to each OpenGraphData property
CalvinTp opened this issue · comments
CalvinTp commented
Hi,
To compile Objective C under Swift 4, each property needs to add @objc to allow Objective c to access them. Can you help to add the codes below?
@objc public class OpenGraphData: NSObject {
@objc public let createdAt: Date
@objc public let imageUrl: URL?
@objc public let pageDescription: String?
@objc public let pageTitle: String?
@objc public let pageType: String?
@objc public let siteName: String?
@objc public let sourceUrl: URL?
@objc public let updatedAt: Date
@objc public let url: URL?
Thanks for sharing the codes and appreciate it :)
Thanks,
Calvin
Taiki Suzuki commented