I just started learning Apple Swift I can not deal with the problem, I have methods to help Objective-C please rewrite on Apple Swift
- (void)setClass:(Class)aClass {
NSObject *object = [[aClass alloc] init];
}
Call method (User Inherited from NSObject):
[self setClass:[User class]];
How to repeat such actions on Apple Swift? Thank you!