summaryrefslogtreecommitdiff
path: root/platform/ios/vendor/SMCalloutView/SMCalloutView.m
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/vendor/SMCalloutView/SMCalloutView.m')
-rwxr-xr-xplatform/ios/vendor/SMCalloutView/SMCalloutView.m9
1 files changed, 7 insertions, 2 deletions
diff --git a/platform/ios/vendor/SMCalloutView/SMCalloutView.m b/platform/ios/vendor/SMCalloutView/SMCalloutView.m
index 66a7b5a7a7..0520ba08a5 100755
--- a/platform/ios/vendor/SMCalloutView/SMCalloutView.m
+++ b/platform/ios/vendor/SMCalloutView/SMCalloutView.m
@@ -554,13 +554,18 @@ NSTimeInterval const kMGLSMCalloutViewRepositionDelayForUIScrollView = 1.0/3.0;
stretch.toValue = presenting ? @1.0 : @0.0;
animation = stretch;
}
-
+
+ NSAssert(animation, @"There should be an animation");
+
// CAAnimation is KVC compliant, so we can store whether we're presenting for lookup in our delegate methods
[animation setValue:@(presenting) forKey:@"presenting"];
animation.fillMode = kCAFillModeForwards;
animation.removedOnCompletion = NO;
- return animation;
+
+ // Cast as non-null to mute static analysis warning as documented at
+ // https://clang-analyzer.llvm.org/faq.html#decide_nullability
+ return (CAAnimation * _Nonnull)animation;
}
- (void)layoutSubviews {