Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.
/ WithMotion Public archive

A RubyMotion gem that does away with needing to use .alloc.init to initialise Objective-C objects.

Notifications You must be signed in to change notification settings

pixlwave/WithMotion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WithMotion

A RubyMotion gem that does away with needing to use .alloc.init to initialise Objective-C objects.

WithMotion allows you to transform this

label = UILabel.alloc.initWithFrame([[50, 100], [100, 30]])
color = UIColor.alloc.initWithRed(0.5, green: 0.5, blue: 0.5, alpha: 0.9)

into this

label = UILabel.with(frame: [[50, 100], [100, 30]])
color = UIColor.with(red: 0.5, green: 0.5, blue: 0.5, alpha: 0.9)

Installation

Add this line to your application's Gemfile:

gem 'WithMotion'

And then execute:

$ bundle

Start using and enjoy!

About

A RubyMotion gem that does away with needing to use .alloc.init to initialise Objective-C objects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages