Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
A nice looking button in RubyMotion that extends the UIButton class and adds a couple properties for easy styling.
Just pass a single hex value to backgroundColor
and get a nice gradient button with a shadow.
You can also more easily set the borderRadius
, font
, textColor
, and title
for the button's label. Everything else works just like a UIButton!
I find it very easy to use Bundler to manage gems in RubyMotion.
Rakefile
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'
require 'bundler'
Bundler.require
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'Testing'
end
Gemfile
source :rubygems
gem 'easy-button'
Run bundle install
.
@button = EasyButton.alloc.initWithFrame([[10, 160], [300, 80]])
@button.backgroundColor = '#ff0000'
@button.borderRadius = 14
@button.font = UIFont.boldSystemFontOfSize(26)
@button.textColor = '#fff'
@button.title = "That Was Easy!"
Thanks to @seanlilmateus for the inspiration and a bunch of code from CoolButton!
FAQs
Unknown package
We found that easy-button demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.