Skip to content

Commit

Permalink
Merge pull request #5 from dcordero/glowEffectAsset
Browse files Browse the repository at this point in the history
Fix exception when loading gloweffect asset
  • Loading branch information
nonameplum authored Jun 6, 2017
2 parents 5015f33 + f38b339 commit 127aaed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Example-tvOS/ParallaxViewExample/CollectionViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class CollectionViewCell: ParallaxCollectionViewCell {

parallaxEffectOptions.glowAlpha = 0.4
parallaxEffectOptions.shadowPanDeviation = 10
parallaxEffectOptions.parallaxMotionEffect.viewingAngleX = CGFloat(M_PI_4/30)
parallaxEffectOptions.parallaxMotionEffect.viewingAngleY = CGFloat(M_PI_4/30)
parallaxEffectOptions.parallaxMotionEffect.viewingAngleX = CGFloat(Double.pi/4/30)
parallaxEffectOptions.parallaxMotionEffect.viewingAngleY = CGFloat(Double.pi/4/30)
parallaxEffectOptions.parallaxMotionEffect.panValue = CGFloat(5)

// You can customise parallax view standard behaviours using parallaxViewActions property.
Expand Down
12 changes: 2 additions & 10 deletions Resources/Assets.xcassets/gloweffect.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"idiom" : "tv",
"filename" : "gloweffect.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
"scale" : "1x"
}
],
"info" : {
Expand Down

0 comments on commit 127aaed

Please sign in to comment.