diff --git a/Gemfile.lock b/Gemfile.lock index 40f519c..e9ba7a3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,16 +2,16 @@ PATH remote: . specs: sweet-kit (0.4.0) - motion-kit (~> 0.12.0) + motion-kit (~> 0.17.0) sugarcube GEM remote: https://rubygems.org/ specs: dbt (1.1.5) - motion-kit (0.12.0) + motion-kit (0.17.0) dbt (~> 1.1.5) - sugarcube (2.0.2) + sugarcube (3.3.2) PLATFORMS ruby diff --git a/lib/sweet-kit/ios/layouts/uibutton_helpers.rb b/lib/sweet-kit/ios/layouts/uibutton_helpers.rb index 7ddd3e0..0633fc1 100644 --- a/lib/sweet-kit/ios/layouts/uibutton_helpers.rb +++ b/lib/sweet-kit/ios/layouts/uibutton_helpers.rb @@ -51,5 +51,12 @@ def image(value, state: state) target.setImage(value, forState: state) end + + def rounded_corner(radius) + layer do + corner_radius radius + masks_to_bounds true + end + end end end