Objective - C -> Swift : <p>please help I'm new in swift and i can't "translate" code from obj-c to swift. Some literature or any help, please. Or any analogies to INSTANCETYPE in swift</p>

<pre><code>@implementation Message

+ (instancetype)messageWithString:(NSString *)message
{
    return [Message messageWithString:message image:nil];
}

+ (instancetype)messageWithString:(NSString *)message image:(UIImage *)image
{
    return [[Message alloc] initWithString:message image:image];
}

- (instancetype)initWithString:(NSString *)message
{
    return [self initWithString:message image:nil];
}

- (instancetype)initWithString:(NSString *)message image:(UIImage *)image
{
    self = [super init];
    if(self)
    {
        _message = message;
        _avatar = image;
    }
    return self;

 }
@end
</code></pre>

<p><a href="https://pp.vk.me/c615724/v615724473/e293/Di0cnqGRISA.jpg" rel="nofollow">Screen of code</a></p>
