Skip to content

Commit

Permalink
copy image view resizing filter to snapshot (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
sroik authored and lkzhao committed Mar 23, 2018
1 parent 0b93c7a commit 0cdbb95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/HeroContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ extension HeroContext {
contentView.contentMode = imageView.contentMode
contentView.tintColor = imageView.tintColor
contentView.backgroundColor = imageView.backgroundColor
contentView.layer.magnificationFilter = imageView.layer.magnificationFilter
contentView.layer.minificationFilter = imageView.layer.minificationFilter
contentView.layer.minificationFilterBias = imageView.layer.minificationFilterBias
let snapShotView = UIView()
snapShotView.addSubview(contentView)
snapshot = snapShotView
Expand Down

0 comments on commit 0cdbb95

Please sign in to comment.