mattwyskiel / LicensesKit

A simple way to list third-party licenses in your iOS apps
Other
58 stars 16 forks source link

Objective-C compability #12

Open JensWinkler opened 6 years ago

JensWinkler commented 6 years ago

Hi,

i figured out, that I'm not able to use the function "registerLicense" because there's no @obj in front it.

I guess it should be:

@objc public func registerLicense(license: License) {
    licenses.updateValue(license, forKey: license.name)
}

instead of

public func registerLicense(license: License) {
    licenses.updateValue(license, forKey: license.name)
}

I would really appreciate it, if you could fix this bug. Unfortunately I can't create an own Pull-Request because of the missing permissions.

Also the protocol "License" should have the @objc attribute I guess.

Thank you.

Sincerely yours, Jens