summaryrefslogtreecommitdiff
path: root/platform/ios/src/UIView+MGLAdditions.h
diff options
context:
space:
mode:
authorLloyd Sheng <i@lloydsheng.com>2019-03-11 23:06:16 +0800
committerGitHub <noreply@github.com>2019-03-11 23:06:16 +0800
commit60ceac5efc3d77199f773f08400fe1d53d5a1b90 (patch)
tree782c821978c8d4b7da2aff2aef9ab24b3c70e88e /platform/ios/src/UIView+MGLAdditions.h
parent5ccc5b7c360827fe58698c28cae4df399310e4d1 (diff)
downloadqtlocation-mapboxgl-60ceac5efc3d77199f773f08400fe1d53d5a1b90.tar.gz
[iOS] Enable developers to change position of ornaments (#13911)
* APIs for change position of ornaments * Use anchors APIs and emove iOS8 layout code * Add ornaments layout tests
Diffstat (limited to 'platform/ios/src/UIView+MGLAdditions.h')
-rw-r--r--platform/ios/src/UIView+MGLAdditions.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/platform/ios/src/UIView+MGLAdditions.h b/platform/ios/src/UIView+MGLAdditions.h
new file mode 100644
index 0000000000..85fea31ad2
--- /dev/null
+++ b/platform/ios/src/UIView+MGLAdditions.h
@@ -0,0 +1,19 @@
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface UIView (MGLAdditions)
+
+- (UIViewController *)mgl_viewControllerForLayoutGuides;
+
+- (NSLayoutYAxisAnchor *)mgl_safeTopAnchor;
+
+- (NSLayoutXAxisAnchor *)mgl_safeLeadingAnchor;
+
+- (NSLayoutYAxisAnchor *)mgl_safeBottomAnchor;
+
+- (NSLayoutXAxisAnchor *)mgl_safeTrailingAnchor;
+
+@end
+
+NS_ASSUME_NONNULL_END