A style has a collection of images, just as it has collections of sources and layers. * Name things appropriately * Use std::unique_ptr
16 lines
290 B
Objective-C
16 lines
290 B
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
#include <mbgl/style/image.hpp>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface UIImage (MGLAdditions)
|
|
|
|
- (nullable instancetype)initWithMGLStyleImage:(const mbgl::style::Image *)styleImage;
|
|
|
|
- (std::unique_ptr<mbgl::style::Image>)mgl_styleImage;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|