Skip to content

Commit b115228

Browse files
[iOS] Exposing apple pencil and smart highlighter for custom toolbar (#335)
* missing Tool class conditions (toolClassForKey) * Updating package version --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 72186d2 commit b115228

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ios/Classes/PdftronFlutterPlugin.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3819,6 +3819,12 @@ + (Class)toolClassForKey:(NSString *)key
38193819
else if ([key isEqualToString:PTPanToolKey]) {
38203820
return [PTPanTool class];
38213821
}
3822+
else if ([key isEqualToString:PTAnnotationSmartPenToolKey]) {
3823+
return [PTSmartPen class];
3824+
}
3825+
else if ([key isEqualToString:PTPencilKitDrawingToolKey]) {
3826+
return [PTPencilDrawingCreate class];
3827+
}
38223828

38233829
return Nil;
38243830
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: pdftron_flutter
22
description: A convenience wrapper to build Flutter apps that use the PDFTron mobile SDK for smooth, flexible, and stand-alone document viewing.
3-
version: 1.0.1-39
3+
version: 1.0.1-40
44
homepage: https://www.apryse.com
55
repository: https://github.com/ApryseSDK/pdftron-flutter
66
issue_tracker: https://github.com/ApryseSDK/pdftron-flutter/issues

0 commit comments

Comments
 (0)