dron247
02/13/2023, 5:21 AMimport Foundation
@objc public class SampleDataObject: NSObject {
var id: String = ""
var count = 0
public init(id: String, count: Int = 0) {
self.id = id
self.count = count
}
public func toString() -> String {
return id + " " + String(count)
}
public func equals(other: SampleDataObject) -> Bool {
return other.id == id
}
}
And here is my objC class
#import <Foundation/Foundation.h>
#import <VAGrpcOim/AudioProxy.pbobjc.h>
#import <VAGrpcOim/AudioProxy.pbrpc.h>
NS_ASSUME_NONNULL_BEGIN
@interface TestClass : NSObject
@property (strong) NSString *firstName;
@property (strong) NSString *lastName;
- (int) sumWithFirst: (int) a Second: (int) b;
- (void) test;
@end
NS_ASSUME_NONNULL_END
#import "TestClass.h"
@implementation TestClass
- (int) sumWithFirst: (int) a Second: (int) b{
return a+b;
}
- (void) test {
//
}
@end
What I do wrong? Is somewhere out there I can find an article that explains how to make a swift based framework, that could be connected to KMM project?Landry Norris
02/13/2023, 3:02 PMKevin S
02/13/2023, 4:30 PMLandry Norris
02/13/2023, 4:33 PMLandry Norris
02/13/2023, 4:36 PMLandry Norris
02/13/2023, 4:37 PMLandry Norris
02/13/2023, 4:39 PMdron247
02/14/2023, 4:25 AMEvegenii Khokhlov
02/14/2023, 7:48 PMdron247
02/16/2023, 2:37 AM