gradient-view 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,15 +28,15 @@ class GradientView < UIView
28
28
  end
29
29
 
30
30
  def drawLinearGradient
31
- context = UIGraphicsGetCurrentContext()
32
- color_space = CGColorSpaceCreateDeviceRGB()
33
-
34
31
  w = CGRectGetWidth(self.frame)
35
- h = CGRectGetWidth(self.frame)
32
+ h = CGRectGetHeight(self.frame)
36
33
  if w == 0 or h == 0
37
34
  return
38
35
  end
39
36
 
37
+ context = UIGraphicsGetCurrentContext()
38
+ color_space = CGColorSpaceCreateDeviceRGB()
39
+
40
40
  the_start_color = self.startColor
41
41
  the_final_color = self.finalColor
42
42
  angle = self.angle
@@ -1,3 +1,3 @@
1
1
  class GradientView
2
- Version = '0.1.2'
2
+ Version = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gradient-view
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: