Ancestors

Toot

Written by MetalSnake on 2023-11-25 at 16:14

Is it possible to write a fully themeable app using #swiftui ?

I would like to write a native #mac app, but I would like it to look the way I want.

[#]cocoa #coding #swift

=> More informations about this toot | More toots from MetalSnake@oldbytes.space

Descendants

Written by Slothdude on 2023-11-26 at 14:59

@MetalSnake On the one hand, yes, and on the other, no. The real answer is “kind of”. Some components like buttons do allow you to override the default appearance easily. Some don’t support customisation at all, so you may have to implement your own custom elements for those. It all really depends on how far you want to go.

=> More informations about this toot | More toots from slothdude@mastodon.online

Written by MetalSnake on 2023-11-27 at 08:15

@slothdude Thanks for the answer, much appreciated.

I guess that means I will have to look for some other framework.

Might be chance to just learn #rust and see what all the fuss is about.

=> More informations about this toot | More toots from MetalSnake@oldbytes.space

Written by Slothdude on 2023-11-27 at 08:27

@MetalSnake Like I said, it all depends. You can pretty easily build fully custom UI elements and theme them however you like with SwiftUI, too. I would also like to point out that there are Mac users who very much prefer it is their Mac apps also look like Mac apps. And then there’s stuff like accessibility support that might become an issue with custom frameworks, too. If it’s enough that you change some colours here and there, sticking to fully native is best.

=> More informations about this toot | More toots from slothdude@mastodon.online

Written by Slothdude on 2023-11-27 at 08:28

@MetalSnake But if you want to create an app with a skinning system as extensive as 90s MP3 players, yeah, then SwiftUI won’t cut it.

=> More informations about this toot | More toots from slothdude@mastodon.online

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/111472074718173705
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
266.939048 milliseconds
Gemini-to-HTML Time
0.942928 milliseconds

This content has been proxied by September (ba2dc).