Skip to content

Commit

Permalink
feat(ios): set magnificationFilter as kCAFilterNearest by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ozonelmy authored and zoomchan-cxj committed Jul 25, 2022
1 parent 46a7d80 commit bd1642d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ios/sdk/component/view/HippyView.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@

/**
* CALayerContents Filter
* Default is kCAFilterLinear
* Default is kCAFilterLinear for minificationFilter and kCAFilterNearest for magnificationFilter
*/
- (CALayerContentsFilter)minificationFilter;
- (CALayerContentsFilter)magnificationFilter;
Expand Down
2 changes: 1 addition & 1 deletion ios/sdk/component/view/HippyView.m
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ - (CALayerContentsFilter)minificationFilter {
}

- (CALayerContentsFilter)magnificationFilter {
return kCAFilterLinear;
return kCAFilterNearest;
}

- (void)displayLayer:(CALayer *)layer {
Expand Down

0 comments on commit bd1642d

Please sign in to comment.