dearvur.blogg.se

Objective c to swift migration
Objective c to swift migration







objective c to swift migration objective c to swift migration

m I have a of type RangeCircularSlider which it can see fine.

objective c to swift migration

Welcome any thoughts or comments where else I should look? This is exactly what I'm using in my Objc. I've also checked that the build target within the pod project and Objective-C Generated Interface Header Name is HGCircularSlider-Swift.h. In addition I have set use_frameworks! in my Podfile. I'm assuming I need to set some sort of build setting? An example of what I'm trying to access is in the RangeCircularSlider class is here: open var startPointValue: CGFloat = 0.0 ĮndPointValue = startPointValue + distanceĪs we can see here the declaration is public. Obviously it is just a build time item I'm guessing.Īccording to the Apple documentation ( ) the Swift declarations must be marked with the public or open modifier and when I checked the swift file I found that they indeed are. I tried looking at the generated header but when I highlight the #import "-Swift.h" line I just get taken to the NSObject declaration. swift file and add in front of each property or method I wish to access? This seems to go against what CocoaPods is about as the next time I update all my changes will be blown away. I've looked at a number of different resources online including Apple's documentation and the procedure is unclear here what to do. Therefore this is no longer working as none of the properties can be found. I've since updated to the latest version of the CocoaPod which I believe is now Swift 5. Originally it was a Swift 3 project and I simply had to add the #import "-Swift.h" into my. I'm using a Swift CocoaPod in my Objective-C project.









Objective c to swift migration