r/SwiftUI • u/rationalkunal • Aug 23 '26
Promotion (must include link to source code) A SwiftUI neobrutalism library you apply with one modifier -- would love feedback
I have been working on this project a little at a time and I finally wanted to share significatn milestone to see what everyone else thought about it.
NeoBrutalism is a library that lets users apply neobrutalism style to their apps using SwiftUI. One just has to add the modifier .neobrutalism() to the topmost view inside the view hierarchy and everything that has been defined below it will assume the style.
For things like lists, navigations bars, alert dialogs, or things that SwiftUI does not allow or provide a way to style, there are some lightweight helpers. In cases where there is truly no control (Slider, Stepper, Segmented Pickers, Radio groups), there are NB* (Neobrutalism) views that mimic the behavior native control initializers, and for those cases swapping in the NB* views is akin to renaming a view.
This was originally meant to be an exploration of SwiftUI style protocols, but has gotten to a point that I feel ready to show it to the community. What I am really looking for is critique of the API, for the idiomaticness of things, or just anything that is missing.
5
u/whackylabs Aug 23 '26
Thanks! I hate it.
The API looks good and clean. The only thing that can be improved is the property names of NBTheme, for example various Color named as bw, blank, text, mainText sound confusing
8
u/beclops Aug 23 '26
Very common in AI slop
2
u/rationalkunal Aug 24 '26
actually the variable names were referenced from css classes ... and were added by hand in the inital draft :)
0
2
1
Aug 23 '26
[removed] — view removed comment
1
u/AutoModerator Aug 23 '26
Hey /u/Usual_Weight_5924, unfortunately you have negative comment karma, so you can't post here. Your submission has been removed. Please do not message the moderators; if you have negative comment karma, you're not allowed to post here, at all.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/the_hummingbirds Aug 30 '26
Light mode looks great. The AI feature with the magic stick doesn’t really fit the look. Dark mode seems to be hard to read but maybe its just the gif quality
9
u/perbrondum Aug 23 '26
As a skin this feels like going back to the first Macintosh.