sindresorhus

CustomButton

Customizable button for your macOS app

by sindresorhus

Swift

Swift100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
TimOliver

G'day @sindresorhus! Thanks so much for all of your open source work. I recently started learning how to write macOS apps from scratch and your code has been extremely valuable to study! 😁 For your consideration, this PR proposes adding another property to this button class that enables setting the type of corner rounding curve to use Apple's classic "squircle" style that was introduced as a public API in macOS 10.15. Seeing as this is now the default curve style in Big Sur, I've set this property to by default, but I'm happy to change it if this is considered a breaking change. Please let me know if this PR is good as-is, or if you need me to change anything (Or if you don't need it at all! XD) Thanks! Have a great day!

TimOliver · 6y ago
phjs

I have ensured all button properties are set during setup and only animated properties are set/changed during animation. This prevents the animation of the initial color as described in your issue. Fixes #1

phjs · 7y ago
Structured data for AI agents

Repository: sindresorhus/CustomButton. Description: Customizable button for your macOS app Stars: 175, Forks: 19. Primary language: Swift. Languages: Swift (100%). License: MIT. Topics: button, cocoa, macos, nsbutton, swift, swift-package. Latest release: v2.0.0 (6y ago). Open PRs: 0, open issues: 0. Last activity: 2y ago. Community health: 71%. Top contributors: sindresorhus, phjs, boyvanamstel, fredyshox, TimOliver.