swiftui

Back Open Paginator
17.01.2025 04:43
mattcomi (@mattcomi@hachyderm.io)

#SwiftUI developers: any idea how to fix this?

Text("Some text that will truncate")
.lineLimit(1)
.background(Color.yellow)
.frame(maxWidth: 160, alignment: .leading)
.fixedSize()
.truncatund(Color.red)

The yellow and red background's only match when the text isn't truncated. Otherwise, fixedSize() produces a slightly wider frame than necessary. It varies depending on how the text was truncated.





Show Original Post


16.01.2025 23:06
danielsaidi (@danielsaidi@mastodon.social)

people - help plz! Seems like I'm missing something trivial. My app has a screen, where I want to use a paged tab view to swipe between item types. But when I do, the navigation title effect gets lost. Is there some way to keep it when the scroll view is in the tab view?





Show Original Post


16.01.2025 22:46
MikeYenco (@MikeYenco@mastodon.social)

Solved the issue with my fun project. The view that it was trying to render was somehow the initial view (which had no points or colors set yet), and not the one displayed updating from various state variables. Split the view off into its own view and used bindings to pass in the state variables BOTH for display but also for rendering and it works!!! 🙂🎉




Show Original Post


16.01.2025 22:14
fabio (@fabio@iosdev.space)

I need to do a few small things, and we’ll be there. I’m not sure about the position of the countdown, and it might need more testing with additional video premieres and live streams. But I think I’m almost there…

#SwiftUI #iOSDev #iOSDeveloper #Learning #AppDev #indieDev #indieApp #BuildInPublic





Show Original Post


16.01.2025 22:06
fabio (@fabio@iosdev.space)

I need to do a few small things, and we’ll be there. I’m not sure about the position of the countdown, and it might need more testing with additional video premieres and live streams. But I think I’m almost there…

#SwiftUI #iOSDev #iOSDeveloper #Learning #AppDev #indieDev #indieApp #BuildInPublic





Show Original Post


16.01.2025 20:56
ostojan (@ostojan@iosdev.space)

I’ll definitely be trying to create a GitHub-like view as I know it looks amazing, but such a simple view looks really tempting to leave at least for now, maybe even for #MVP… 🤔
#BuildInPublic #iOSDev #SwiftUI




Show Original Post


16.01.2025 20:52
samwarnick (@samwarnick@mastodon.social)

New small update to ScreenCred. I wanted a Control Center widget to start a new search, so I added that.

apps.apple.com/us/app/screencr





Show Original Post


16.01.2025 20:23
pirateguillermo (@pirateguillermo@sfba.social)

Oh, yeah. I forgot for a minute that TabView inside of TabView is kind of messed up on macOS. Hmm. Guess I get to hack some BS solution for the moment.

#swiftui #macos




Show Original Post


16.01.2025 20:11
swiftdevjournal (@swiftdevjournal@mastodon.world)

Most articles about document-based SwiftUI apps use the FileDocument protocol. The following article shows how to use ReferenceFileDocument:

swiftdevjournal.com/using-refe

#SwiftUI




Show Original Post


16.01.2025 18:43
aadishiv (@aadishiv@mastodon.social)

Created a particle to image effect similar to Minsang Choi's work here (threads.net/@radiofun8/post/DC). Was fun to implement and play around with physics





Show Original Post


16.01.2025 17:19
StewartLynch (@StewartLynch@iosdev.space)

Have you ever thought about creating color views with #colorLiteral in #SwiftUI. In this coming Sunday’s video I take a deep dive into Color Views . I love this way of creating mesh gradients.
Subscribe to my channel -> youtube.com/@StewartLynch





Show Original Post


16.01.2025 14:31
obrhoff (@obrhoff@chaos.social)

Some fun with SwiftUI. It's actually not that much code to implement Coverflow with SwiftUI.
#swiftui #ipod #itunes #iosdev





Show Original Post


1 2 3 4 5 6 7 8 9 10 ...129
UP