Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #15 from kamaal111/release/2.3.2
Browse files Browse the repository at this point in the history
Fixing build
  • Loading branch information
kamaal111 committed Nov 2, 2020
2 parents 81db87c + 2ebd6ef commit d115502
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Sources/SalmonUI/Views/KCircularProgressBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public struct KCircularProgressBar: View {

private func onProgressBaraAppear() {
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
loaded = true
self.loaded = true
}
}
}
12 changes: 6 additions & 6 deletions Sources/SalmonUI/Views/KStepper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@ public struct KStepper: View {
.opacity(decrementOpacity)
.disabled(value <= 0)
.onTapGesture(perform: {
decrementOpacity = 0.2
onDecrement()
self.decrementOpacity = 0.2
self.onDecrement()
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
withAnimation { decrementOpacity = 1 }
withAnimation { self.decrementOpacity = 1 }
}
})
Image(systemName: "plus.rectangle.fill")
.size(size)
.opacity(incrementOpacity)
.onTapGesture(perform: {
incrementOpacity = 0.2
onIncrement()
self.incrementOpacity = 0.2
self.onIncrement()
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
withAnimation { incrementOpacity = 1 }
withAnimation { self.incrementOpacity = 1 }
}
})
}
Expand Down

0 comments on commit d115502

Please sign in to comment.