Files
MapLibreParticleLab/platform/ios/src/UIImage+MGLAdditions.h
Thiago Marcos P. Santos 1304502f81 [build] Fix iOS nits
- Hardcoded the bundle identifier on Info.plist, CMake is not
  picking it up.
- Do not use installed headers when building the framework.
2019-09-17 12:28:55 +03:00

26 lines
667 B
Objective-C

#import <UIKit/UIKit.h>
#import "MGLTypes.h"
#include <mbgl/style/image.hpp>
NS_ASSUME_NONNULL_BEGIN
FOUNDATION_EXTERN MGL_EXPORT MGLExceptionName const MGLResourceNotFoundException;
@interface UIImage (MGLAdditions)
- (nullable instancetype)initWithMGLStyleImage:(const mbgl::style::Image *)styleImage;
- (nullable instancetype)initWithMGLPremultipliedImage:(const mbgl::PremultipliedImage&&)mbglImage scale:(CGFloat)scale;
- (std::unique_ptr<mbgl::style::Image>)mgl_styleImageWithIdentifier:(NSString *)identifier;
- (mbgl::PremultipliedImage)mgl_premultipliedImage;
+ (UIImage *)mgl_resourceImageNamed:(NSString *)imageName;
@end
NS_ASSUME_NONNULL_END