I am using a Swift based project and have imported some Objective C files. Now I want my Swift code to work back in ObjC files. All goes well but unfortunately, Int, Float and Double attributes of classes are not available to Objective C class. Any idea why is this not being open to Objective C?
Swift Class:
class Station: NSObject, NSCoding {
var Id : Int!
var placeId : Int!
var name : String!
var stationDescription : String!
var uuid : String!
var major : Int?
var minor : Int?
var coordinates: CLLocationCoordinate2D!
var geoFenceRadius : Float?
var questions : [Question]?
}
Swift-Interface Generated Class:
@interface Station : NSObject <NSCoding>
@property (nonatomic, copy) NSString * _Null_unspecified name;
@property (nonatomic, copy) NSString * _Null_unspecified stationDescription;
@property (nonatomic, copy) NSString * _Null_unspecified uuid;
@property (nonatomic, copy) NSArray<Question *> * _Nullable questions;
- (BOOL)isEqual:(id _Nullable)object;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER;
- (void)encodeWithCoder:(NSCoder * _Nonnull)aCoder;
+ (Station * _Nullable)stationWithDictionary:(NSDictionary<NSString *, id> * _Nonnull)dict placeUUID:(NSString * _Nullable)placeUUID;
+ (NSArray<Station *> * _Nullable)parseListFromDictionariesList:(NSArray<NSDictionary<NSString *, id> *> * _Nonnull)dicts placeUUID:(NSString * _Nullable)placeUUID;
@end