summaryrefslogtreecommitdiff
path: root/platform/ios/src/UIImage+MGLAdditions.h
blob: f291a302c973b9ee95437691a0db3cc28a7abb03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#import <UIKit/UIKit.h>

#include <mbgl/sprite/sprite_image.hpp>

NS_ASSUME_NONNULL_BEGIN

@interface UIImage (MGLAdditions)

- (nullable instancetype)initWithMGLSpriteImage:(const mbgl::SpriteImage *)spriteImage;

- (std::unique_ptr<mbgl::SpriteImage>)mgl_spriteImage;

@end

NS_ASSUME_NONNULL_END