motion-form 0.0.3 → 0.0.4

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: c6c5f6d6d6e4e1f327cbe637636be8d8ba507e5b
4
- data.tar.gz: 2b84ae16300f98d3cb15ceb9d99f8bf38cc7786c
3
+ metadata.gz: 7ec0e3983a3800bb6edc7c633122be829717b91c
4
+ data.tar.gz: f58908af2255c1b33fda2f7e5f2e0a57df626f91
5
5
  SHA512:
6
- metadata.gz: d1a2a7dce932d0d586463dc1dfee0d15fd9ee5aa6e01786b7d5cb7f24d6f0a6ccac175a28e3e5460f362df46a1786287a90f04201c89c073a95d03f264428431
7
- data.tar.gz: 9fb5fd09fa085ce140d180fc566c71752fa70087d35f7f6a4f633ecaa6a6663b56271a724844b76c6a9706ffb220d09f255372dcd25b37ce08655fbdd9c16ada
6
+ metadata.gz: 34ce98d6e227ccb7dd1c9bf3d4c2d8aa6272dd479413580ac2f70654b2a3b1bfdd74e9ea0a94ad4b210dac2858ae5a32cdcfe77a61d35591b43a54a13e4f500c
7
+ data.tar.gz: 49d98fd12486955a5fa75510077c172ecec548ab8beb512669e270ef0069dedaf8f856f74427e1b9519cf6b48aa854aa62c33f8da6d815ddd41781b35b0411f1
data/README.md CHANGED
@@ -13,7 +13,7 @@ It aims to bring a simple, yet flexible DSL to the tedious task of creating iOS
13
13
  ```ruby
14
14
  form = MotionForm.form_for(view) do |f|
15
15
  f.section 'Profile' do |section|
16
- section.input :name, icon: :contact
16
+ section.input :name, icon: :contact, value: 'David Copperfield'
17
17
  section.input :username, icon: :user
18
18
  section.input :pinterest, icon: :pinterest
19
19
  section.input :twitter, icon: :twitter
@@ -41,6 +41,10 @@ class TextFieldCell < BaseCell
41
41
  text_field.text
42
42
  end
43
43
 
44
+ def value=(value)
45
+ text_field.text = value
46
+ end
47
+
44
48
  def layoutSubviews
45
49
  text_field.frame = [[10, 0], [300, 43]]
46
50
  left_view.frame = [[0, 0], [36, 43]]
@@ -22,6 +22,12 @@ class TextFieldRow < BaseRow
22
22
  self.value = text_field.text
23
23
  end
24
24
 
25
+ def update_cell(cell)
26
+ super
27
+
28
+ cell.value = options[:value]
29
+ end
30
+
25
31
  def cell_type
26
32
  TextFieldCell
27
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Devon Blandin