GitShow/sindresorhus/CustomButton
sindresorhus

CustomButton

Customizable button for your macOS app

by sindresorhus
buttoncocoamacosnsbuttonswiftswift-package
Star on GitHubFork

Swift

175 stars19 forks5 contributorsQuiet · 2y agoSince 2019v2.0.0MIT

Meet the team

See all 5 on GitHub →
sindresorhus
sindresorhus11 contributions
phjs
phjs2 contributions
boyvanamstel
boyvanamstel1 contribution
fredyshox
fredyshox1 contribution
TimOliver
TimOliver1 contribution

Languages

View on GitHub →
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

Recent fixes

View closed PRs →
TimOliver
Add continuous corner style to rounded buttons in macOS 10.15 and upMergedPR

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 · 5y ago
boyvanamstel
Add boyvanamstel to sponsor list 🎉MergedPR
boyvanamstel · 6y ago
phjs
Prevent initial animationMergedPR

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 · 6y 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 (5y ago). Open PRs: 0, open issues: 0. Last activity: 2y ago. Community health: 71%. Top contributors: sindresorhus, phjs, boyvanamstel, fredyshox, TimOliver.

·@ofershap

Replace github.com with gitshow.dev