Skip to content
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.

Remove use of casting to implicitly unwrapped optional #30

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Source/RPCircularProgress.swift
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ open class RPCircularProgress: UIView {
// Basic animations have their value reset to the original once the animation is finished
// since only the presentation layer is animating
var currentProgress: CGFloat = 0
if let presentationLayer = progressLayer.presentation() as ProgressLayer! {
if let presentationLayer = progressLayer.presentation() as? ProgressLayer {
currentProgress = presentationLayer.progress
}
progressLayer.progress = currentProgress
Expand Down