Swiftgram/LegacyComponents/TGLocationAnnotation.m
2017-08-04 18:11:13 +03:00

23 lines
440 B
Objective-C

#import "TGLocationAnnotation.h"
@implementation TGLocationAnnotation
- (instancetype)initWithCoordinate:(CLLocationCoordinate2D)coordinate title:(NSString *)title
{
self = [super init];
if (self != nil)
{
_coordinate = coordinate;
self.title = title;
self.subtitle = nil;
}
return self;
}
- (void)setCoordinate:(CLLocationCoordinate2D)newCoordinate
{
_coordinate = newCoordinate;
}
@end