Skip to content

Commit

Permalink
version 1.0.8
Browse files Browse the repository at this point in the history
minor improvement in rendering performance
  • Loading branch information
mbender74 committed Jan 17, 2022
1 parent ceff848 commit 09f8d06
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 19 deletions.
36 changes: 19 additions & 17 deletions ios/Classes/TiPopoverProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ - (void)show:(id)args
^{
[self initAndShowPopOver];
},
YES);
NO);
}

- (void)hide:(id)args
Expand Down Expand Up @@ -405,8 +405,8 @@ - (void)initAndShowPopOver
} else {
[contentViewProxy windowWillOpen];
[contentViewProxy reposition];
[contentViewProxy layoutChildrenIfNeeded];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.05 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
//[contentViewProxy layoutChildrenIfNeeded];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self updatePopoverNow];
});
//[contentViewProxy windowDidOpen];
Expand Down Expand Up @@ -537,9 +537,11 @@ - (void)updatePopoverNow
popoverDarkenBackgroundView.alpha = 1.0;
}
}
[[[TiApp app] controller] presentViewController:theController animated:animated completion:nil];
[[[TiApp app] controller] presentViewController:theController animated:animated completion:nil];
[(TiWindowProxy *)contentViewProxy windowDidOpen];

dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.05 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{

if (animated){
[UIView animateWithDuration:0.001 delay: 0.0 options: UIViewAnimationOptionCurveEaseIn
animations:^{
Expand All @@ -551,7 +553,6 @@ - (void)updatePopoverNow
else {
[contentViewProxy view].alpha = 1.0;
}
[(TiWindowProxy *)contentViewProxy windowDidOpen];

});
}
Expand Down Expand Up @@ -581,22 +582,23 @@ - (void)updatePopoverNow
popoverDarkenBackgroundView.alpha = 1.0;
}
}

[[[TiApp app] controller] presentViewController:theController animated:NO completion:nil];
[contentViewProxy windowDidOpen];

if (animated){
[UIView animateWithDuration:0.001 delay: 0.0 options: UIViewAnimationOptionCurveEaseIn
animations:^{
//dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.05 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{

if (animated){
[UIView animateWithDuration:0.01 delay: 0.0 options: UIViewAnimationOptionCurveEaseIn
animations:^{
[contentViewProxy view].alpha = 1.0;
}
completion:^(BOOL finished) {
}];
}
else {
[contentViewProxy view].alpha = 1.0;
}
completion:^(BOOL finished) {
}];
}
else {
[contentViewProxy view].alpha = 1.0;
}
[contentViewProxy windowDidOpen];

//});
}
}

Expand Down
2 changes: 1 addition & 1 deletion ios/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
version: 1.0.7
version: 1.0.8
apiversion: 2
architectures: arm64 x86_64
mac: true
Expand Down
1 change: 0 additions & 1 deletion ios/metadata.json

This file was deleted.

Binary file not shown.

0 comments on commit 09f8d06

Please sign in to comment.