Skip to content
This repository has been archived by the owner on Oct 15, 2018. It is now read-only.

Commit

Permalink
Fix meter glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
andreamazz committed Sep 27, 2016
1 parent d91fc7c commit 8fc3fd9
Show file tree
Hide file tree
Showing 12 changed files with 1,792 additions and 1,641 deletions.
8 changes: 5 additions & 3 deletions Gulps/ViewControllers/DrinkViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ open class DrinkViewController: UIViewController, UIAlertViewDelegate, UIViewCon
NotificationCenter.default.addObserver(self, selector: #selector(DrinkViewController.updateUI), name: NSNotification.Name.UIApplicationDidBecomeActive, object: nil)
}

open override var prefersStatusBarHidden : Bool {
open override var prefersStatusBarHidden: Bool {
return false
}

open override var preferredStatusBarStyle : UIStatusBarStyle {
open override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}

Expand Down Expand Up @@ -109,7 +109,9 @@ open class DrinkViewController: UIViewController, UIAlertViewDelegate, UIViewCon
if fillTo > 1 {
fillTo = 1
}
progressMeter?.fill(to: NSNumber(value: fillTo))
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
self.progressMeter?.fill(to: NSNumber(value: fillTo))
}
}

override open func prepare(for segue: UIStoryboardSegue, sender: Any?) {
Expand Down
3 changes: 1 addition & 2 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ def common_pods
pod 'AMPopTip', '~> 0.7'
pod 'UICountingLabel', '~> 1.2'
pod 'JTCalendar', git: 'https://github.com/andreamazz/JTCalendar', branch: 'develop'
pod 'BAFluidView', '~> 0.1.6'
pod 'BAFluidView', '~> 0.2.3'
pod 'BubbleTransition', '~> 2.0.0'
# pod 'SwiftDate', '~> 1.2'
end

target 'Gulps' do
Expand Down
8 changes: 4 additions & 4 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PODS:
- AHKActionSheet (0.5.4)
- AMPopTip (0.10.2)
- AMWaveTransition (0.6.2)
- BAFluidView (0.1.8)
- BAFluidView (0.2.3)
- BubbleTransition (2.0.0)
- FBSnapshotTestCase (2.1.3):
- FBSnapshotTestCase/SwiftSupport (= 2.1.3)
Expand All @@ -28,7 +28,7 @@ DEPENDENCIES:
- AHKActionSheet (~> 0.5)
- AMPopTip (~> 0.7)
- AMWaveTransition (~> 0.5)
- BAFluidView (~> 0.1.6)
- BAFluidView (~> 0.2.3)
- BubbleTransition (~> 2.0.0)
- FBSnapshotTestCase (= 2.1.3)
- JTCalendar (from `https://github.com/andreamazz/JTCalendar`, branch `develop`)
Expand All @@ -53,7 +53,7 @@ SPEC CHECKSUMS:
AHKActionSheet: f0b312b5c689f72924d231c39dae140ecd5c1d46
AMPopTip: 0788a9452806049e3aa0d6d09324606fc41ea646
AMWaveTransition: 98952310574779e4ca7e7f4d89f8b1043cdad171
BAFluidView: c7d93c030171c9644ab03f57cbfccf993ebd04e5
BAFluidView: 5d84ef109831b97740f75b6d785e51f13fa08398
BubbleTransition: bdb9d71993b8d3513008e2dda6bada1ddad25d4f
FBSnapshotTestCase: 4607968e0dfa1e2772ec0d0098354f8b870c5753
JTCalendar: 4cc527e2babd446ce4b96a23c257e5a02fbdac26
Expand All @@ -65,6 +65,6 @@ SPEC CHECKSUMS:
RealmSwift: 838058b2db95b12cb86bd0cf209df642c33fb60a
UICountingLabel: ed5ce5b6d5ef278ff40d99cfa49577a30ab0c87b

PODFILE CHECKSUM: 56ab4446fb355531e15bb205061ba2a4d751c6d2
PODFILE CHECKSUM: 8c0ac70b44ea8464b80dbbb39aac47effe749ba0

COCOAPODS: 1.1.0.rc.2
16 changes: 11 additions & 5 deletions Pods/BAFluidView/Pod/Classes/BAFluidView.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8fc3fd9

Please sign in to comment.