marty-suzuki / URLEmbeddedView

URLEmbeddedView automatically caches the object that is confirmed the Open Graph Protocol.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding @objc to each OpenGraphData property

CalvinTp opened this issue · comments

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

Hi, @CalvinTp

Those have already added at 0.15.1
Please check this line.

Thanks