Skip to content

Commit

Permalink
chore: [swift] remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
peterklingelhofer committed May 14, 2023
1 parent e146c17 commit 7b217a8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Binary file not shown.
3 changes: 0 additions & 3 deletions swift/exhale/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ extension Shape {
func colorTransitionFill(settingsModel: SettingsModel, animationProgress: CGFloat, breathingPhase: BreathingPhase, endRadius: CGFloat = 0) -> some View {
let isInhalePhase = breathingPhase == .inhale || breathingPhase == .holdAfterInhale
let lastColor = isInhalePhase ? settingsModel.inhaleColor : settingsModel.exhaleColor
let nextColor = isInhalePhase ? settingsModel.exhaleColor : settingsModel.inhaleColor
let startingColor = isInhalePhase ? settingsModel.exhaleColor : settingsModel.inhaleColor
let transitionFraction = breathingPhase == .exhale ? Double(1 - animationProgress) : Double(animationProgress)

if settingsModel.colorFillType != .constant {
if settingsModel.shape == .rectangle {
Expand Down

0 comments on commit 7b217a8

Please sign in to comment.