@papyrus-sdk/engine-native 0.2.22-beta.1 → 0.2.22-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1701,7 +1701,7 @@ static NSString *PapyrusHexColorFromUIColor(UIColor *color, CGFloat *opacity) {
|
|
|
1701
1701
|
self.contextualAnnotationMenuConfigurationId = nil;
|
|
1702
1702
|
CGPoint sourcePoint = CGPointMake(CGRectGetMidX(viewRect), CGRectGetMidY(viewRect));
|
|
1703
1703
|
UIEditMenuConfiguration *configuration =
|
|
1704
|
-
[
|
|
1704
|
+
[UIEditMenuConfiguration configurationWithIdentifier:signature sourcePoint:sourcePoint];
|
|
1705
1705
|
[interaction presentEditMenuWithConfiguration:configuration];
|
|
1706
1706
|
}
|
|
1707
1707
|
}
|
|
@@ -1717,8 +1717,7 @@ static NSString *PapyrusHexColorFromUIColor(UIColor *color, CGFloat *opacity) {
|
|
|
1717
1717
|
self.contextualAnnotationMenuId = [annotationId copy];
|
|
1718
1718
|
self.contextualAnnotationMenuConfigurationId = configurationId;
|
|
1719
1719
|
self.contextualAnnotationMenuSourcePoint = point;
|
|
1720
|
-
UIEditMenuConfiguration *configuration = [
|
|
1721
|
-
initWithIdentifier:configurationId sourcePoint:point];
|
|
1720
|
+
UIEditMenuConfiguration *configuration = [UIEditMenuConfiguration configurationWithIdentifier:configurationId sourcePoint:point];
|
|
1722
1721
|
[interaction presentEditMenuWithConfiguration:configuration];
|
|
1723
1722
|
}
|
|
1724
1723
|
}
|
|
@@ -1751,7 +1750,7 @@ static NSString *PapyrusHexColorFromUIColor(UIColor *color, CGFloat *opacity) {
|
|
|
1751
1750
|
menuForConfiguration:(UIEditMenuConfiguration *)configuration
|
|
1752
1751
|
suggestedActions:(NSArray<UIMenuElement *> *)suggestedActions API_AVAILABLE(ios(16.0)) {
|
|
1753
1752
|
if (self.contextualAnnotationMenuId.length > 0 &&
|
|
1754
|
-
[configuration.identifier
|
|
1753
|
+
[(NSString *)configuration.identifier isEqualToString:self.contextualAnnotationMenuConfigurationId]) {
|
|
1755
1754
|
NSString *annotationId = [self.contextualAnnotationMenuId copy];
|
|
1756
1755
|
if (!self.onAnnotationDelete || self.annotationDeleteLabel.length == 0) return nil;
|
|
1757
1756
|
PDFDocument *documentAtPresentation = self.pdfView.document;
|
|
@@ -1834,7 +1833,7 @@ static NSString *PapyrusHexColorFromUIColor(UIColor *color, CGFloat *opacity) {
|
|
|
1834
1833
|
- (CGRect)editMenuInteraction:(UIEditMenuInteraction *)interaction
|
|
1835
1834
|
targetRectForConfiguration:(UIEditMenuConfiguration *)configuration API_AVAILABLE(ios(16.0)) {
|
|
1836
1835
|
if (self.contextualAnnotationMenuId.length > 0 &&
|
|
1837
|
-
[configuration.identifier
|
|
1836
|
+
[(NSString *)configuration.identifier isEqualToString:self.contextualAnnotationMenuConfigurationId]) {
|
|
1838
1837
|
CGPoint point = self.contextualAnnotationMenuSourcePoint;
|
|
1839
1838
|
return CGRectMake(point.x, point.y, 1.0, 1.0);
|
|
1840
1839
|
}
|
|
@@ -1852,7 +1851,7 @@ static NSString *PapyrusHexColorFromUIColor(UIColor *color, CGFloat *opacity) {
|
|
|
1852
1851
|
willDismissMenuForConfiguration:(UIEditMenuConfiguration *)configuration
|
|
1853
1852
|
animator:(id<UIEditMenuInteractionAnimating>)animator API_AVAILABLE(ios(16.0)) {
|
|
1854
1853
|
if (self.contextualAnnotationMenuId.length == 0 ||
|
|
1855
|
-
![configuration.identifier
|
|
1854
|
+
![(NSString *)configuration.identifier isEqualToString:self.contextualAnnotationMenuConfigurationId]) return;
|
|
1856
1855
|
|
|
1857
1856
|
self.contextualAnnotationMenuId = nil;
|
|
1858
1857
|
self.contextualAnnotationMenuConfigurationId = nil;
|