swipe_title 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc7dc5101c1b3576e134130430264d89475175fa
|
4
|
+
data.tar.gz: 9eacd3f6a569dfca8690827c635f47ce6d27a91d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b7b83ae4474fda3f16b1d6b02411a5be9fab61ec4f8e76ac6393ca2ae9ae0e2cd773c9abb57d6c7e7371c7f30556c0d1a662c295139b036836a822eebd5f80d
|
7
|
+
data.tar.gz: 10c412b0eeb17fdeedae2f9f3a0fc07459e23ef0a497be87f2de4dc666062c190001fb6197bb284cc55d6994d74754d697568522d690c40560253dab6df25264
|
@@ -70,7 +70,7 @@ class SwipeCollectionViewController < UICollectionViewController
|
|
70
70
|
forIndexPath: indexPath).tap do |c|
|
71
71
|
c.titleLabel.text = @titles[indexPath.row]
|
72
72
|
c.titleLabel.color = UIColor.whiteColor
|
73
|
-
|
73
|
+
|
74
74
|
c.titleLabel.shadowOffset = [1, 1]
|
75
75
|
end
|
76
76
|
end
|
data/lib/swipe_title/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swipe_title
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DmitryTsepelev
|
@@ -43,7 +43,6 @@ files:
|
|
43
43
|
- lib/swipe_title/swipe_title_controller.rb
|
44
44
|
- lib/swipe_title/swipe_title_layout.rb
|
45
45
|
- lib/swipe_title/title_page.rb
|
46
|
-
- lib/swipe_title/ui_color.rb
|
47
46
|
- lib/swipe_title/version.rb
|
48
47
|
- spec/spec_helper.rb
|
49
48
|
- spec/swipe_title_spec.rb
|
data/lib/swipe_title/ui_color.rb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
class UIColor
|
2
|
-
def self.[](str)
|
3
|
-
# Next attempt to convert from hex
|
4
|
-
hex_color = str.gsub("#", "")
|
5
|
-
case hex_color.size
|
6
|
-
when 3
|
7
|
-
colors = hex_color.scan(%r{[0-9A-Fa-f]}).map{ |el| (el * 2).to_i(16) }
|
8
|
-
when 6
|
9
|
-
colors = hex_color.scan(%r<[0-9A-Fa-f]{2}>).map{ |el| el.to_i(16) }
|
10
|
-
else
|
11
|
-
raise ArgumentError
|
12
|
-
end
|
13
|
-
if colors.size == 3
|
14
|
-
UIColor.colorWithRed((colors[0]/255.0), green:(colors[1]/255.0), blue:(colors[2]/255.0), alpha:1)
|
15
|
-
else
|
16
|
-
raise ArgumentError
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.withNamedImage name
|
21
|
-
self.colorWithPatternImage(UIImage.imageNamed(name))
|
22
|
-
end
|
23
|
-
end
|