Files
MapLibreParticleLab/platform/ios/test/KIFTestActor+MapboxGL.m

26 lines
563 B
Objective-C

#import "KIFTestActor+MapboxGL.h"
#import <Mapbox/Mapbox.h>
#import <KIF/UIApplication-KIFAdditions.h>
@implementation KIFTestActor (MapboxGL)
- (UIWindow *)window {
return [[UIApplication sharedApplication] statusBarWindow];
}
- (MGLTViewController *)viewController {
return (MGLTViewController *)[[tester.mapView nextResponder] nextResponder];
}
- (MGLMapView *)mapView {
return (MGLMapView *)[tester waitForViewWithAccessibilityLabel:@"Map"];
}
- (UIView *)compass {
return [tester waitForViewWithAccessibilityLabel:@"Compass"];
}
@end