Sha256: 1759f2506f9255ad3c2cc72fa7b57672c2906dc23c6d30e92b1a0da977dd6c5a

Contents?: true

Size: 980 Bytes

Versions: 3

Compression:

Stored size: 980 Bytes

Contents

# ProMotion-formotion

ProMotion Formotion Screen

Made a gem from the ProMotion formotion example at https://github.com/clearsightstudio/ProMotion#using-your-own-uiviewcontroller

Now with 100% more motion_require


## Setup

Add this gem to your project, in Gemfile `gem 'ProMotion-formotion'`,
then `bundle update`

Create a Formotion Screen with:
```ruby
class LoginScreen < PM::FormotionScreen

  title "Login"

  def on_submit(_form)
   
  end

  def table_data
    {
      sections: [{
        title: "Credentials",
        rows: [{
          title: "Email",
          key: :email,
          placeholder: "example@kohactive.com",
          type: :string,
          auto_correction: :no,
          auto_capitalization: :none
        },
        {
          title: "Password",
          key: :password,
          placeholder: "",
          type: :string,
          auto_correction: :no,
          auto_capitalization: :none
        },
      ]
      }]
    }
  end



end
``` 

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ProMotion-formotion-0.1.3 README.md
ProMotion-formotion-0.1.2 README.md
ProMotion-formotion-0.1.1 README.md