Customize NSButton Colors And Corner Radius On macOS Projects

Xcode makes available a variety of buttons to use when developing macOS applications. However, none of the predefined button styles leaves much room for customization. For that reason, in this short post I’m going to show how to customize NSButton colors and corner radius; including background, text and highlight colors.

--

--

--

An iOS & macOS app maker writing code in Swift. Author of countless programming tutorials. Content creator. https://serialcoder.dev

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Other Interface Elements That Use KVO, KVC, a nd Core Data

images/GrokkingRecipesOutline.png

Building iPad apps, prototyping Instagram for iPad (part one)

Set Up a Code-Based View Controll er for Experiments

images/load-view-controllers/fix-it.png

Using FileManager in SwiftUI

A Simple UIView Extension to get Constraints Programmatically to any UIView

Day57 | 100DaysOfGADS

Bringing type safety to UI tests on iOS

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Gabriel Theodoropoulos

Gabriel Theodoropoulos

An iOS & macOS app maker writing code in Swift. Author of countless programming tutorials. Content creator. https://serialcoder.dev

More from Medium

SwiftUI Tutorial: Searchable

Navigate to another View in SwiftUI

Speech Synthesis: Text To Speech in SwiftUI

Trail VFX with SpriteKit

Trail VFX with SpriteKit