Skip to content

Commit

Permalink
Merge pull request #11 from padlet/colin/fix-issue-with-iOS-17.4
Browse files Browse the repository at this point in the history
[ENG-12857] Fix issue with iOS 17.4
  • Loading branch information
asleepace authored Feb 22, 2024
2 parents 7f3e053 + 30214d9 commit 38ffe0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions ios/RNPencilKit.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ - (void)layoutSubviews {

- (void)setToolPicker API_AVAILABLE(ios(13)) {
RCTLogInfo(@"[RNPencilKit] creating tool bar!");
UIWindow *window = [[[UIApplication sharedApplication] delegate] window];
self.picker = [PKToolPicker sharedToolPickerForWindow:window];
self.picker = [[PKToolPicker alloc] init];
[self.picker addObserver:self.canvas];
[self.picker setVisible:true forFirstResponder:self.canvas];
[self.canvas becomeFirstResponder];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-draw-canvas",
"title": "React Native Draw Canvas",
"version": "1.1.4",
"version": "1.2.0",
"description": "Cross platform native draw canvas for both iOS and Android",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 38ffe0c

Please sign in to comment.