Skip to content

Commit

Permalink
Fix deprecated use of M_PI_4. Using Double.pi/4 instead
Browse files Browse the repository at this point in the history
  • Loading branch information
dcordero committed Jun 6, 2017
1 parent ab7203a commit f38b339
Showing 1 changed file with 2 additions and 2 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

0 comments on commit f38b339

Please sign in to comment.