Skip to content

Commit

Permalink
Added 3D rotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Vorobei committed Jan 7, 2022
1 parent 60167cb commit fd172fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Binary file not shown.
8 changes: 8 additions & 0 deletions Sources/SPConfetti/SPConfettiView.swift
Expand Up @@ -234,6 +234,14 @@ open class SPConfettiView: UIView {
cell.color = color.cgColor
}
cell.contents = image.cgImage

// Make 3D
cell.setValue("plane", forKey: "particleType")
cell.setValue(Double.pi, forKey: "orientationRange")
cell.setValue(Double.pi, forKey: "orientationLongitude")
cell.setValue(Double.pi, forKey: "orientationLatitude")
// End make 3d

return cell
}

Expand Down

0 comments on commit fd172fe

Please sign in to comment.