
Research
/Security News
60 Malicious Ruby Gems Used in Targeted Credential Theft Campaign
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
github.com/BalestraPatrick/SquishButton
Inspired by the new Clips app record button, SquishButton
is a UIButton
subclass that implements the same design and behavior.
Use it as every other UIButton
object and customize it to suit your needs. These are the public properties that SquishButton
adds:
/// The number of pixels to scale the inner rectangle.
open var scaling = CGFloat(10)
/// The duration of the animation when the button is in the highlighted state.
open var animationDuration = 0.15
/// The color of the inner rectangle.
open var color = UIColor(red: 244.0/255.0, green: 51.0/255.0, blue: 50.0/255.0, alpha: 1.0)
/// The inset between the outer border and inner rectangle.
open var innerInset = CGFloat(5)
iOS 8.3 and Swift 3.2.
If you are using Swift 4, please use the swift4 branch.
SquishButton is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SquishButton'
You can also use Carthage if you prefer. Add this line to your Cartfile
.
github "BalestraPatrick/SquishButton"
I'm Patrick Balestra. Email: me@patrickbalestra.com Twitter: @BalestraPatrick.
SquishButton
is available under the MIT license. See the LICENSE file for more info.
FAQs
Unknown package
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.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.