You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a mixed Objective-C and Swift project using LicensesViewController which I have just updated to Swift 4 from Swift 3
However this does now not compile because Objective-C code cannot see open func loadPlist(_ bundle: Bundle, resourceName: String). Swift 4 requires explicitly declaring @objc to functions which are exposed to Objective-C.
Could you please add @objc to the functions you wish to expose to Objective-C.
The text was updated successfully, but these errors were encountered:
michaeleustace
changed the title
Allow access from Objective-C
Regression: Allow access from Objective-C
Dec 19, 2017
I have a mixed Objective-C and Swift project using LicensesViewController which I have just updated to Swift 4 from Swift 3
However this does now not compile because Objective-C code cannot see
open func loadPlist(_ bundle: Bundle, resourceName: String)
. Swift 4 requires explicitly declaring@objc
to functions which are exposed to Objective-C.Could you please add
@objc
to the functions you wish to expose to Objective-C.The text was updated successfully, but these errors were encountered: