I am using coreplot to plot graph in my app.
When i try to assign X-Axis label or major tick location it is throwing error though
xAxis.axisLabels = xAxisLabels as Set<NSObject>
xAxis.majorTickLocations = xMajorTickLocations as Set<NSObject>
'NSMutableSet' is not implicitly convertible to 'Set<NSObject>'; did you mean to use 'as' to explicitly convert
You should use native Swift types rather than Foundation collections when possible. This eliminates the need for casting.
var xAxisLabels = Set<CPTAxisLabel>() var xMajorTickLocations = Set<NSNumber>()