#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.
#SwiftUI 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?
Solved the issue with my #SwiftUI 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!!! 🙂🎉
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
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
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
New small update to ScreenCred. I wanted a Control Center widget to start a new search, so I added that.
https://apps.apple.com/us/app/screencred-movie-tv-credits/id1670497275
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.
Most articles about document-based SwiftUI apps use the FileDocument protocol. The following article shows how to use ReferenceFileDocument:
https://swiftdevjournal.com/using-referencefiledocument-to-save-swiftui-documents/
Created a particle to image effect similar to Minsang Choi's work here (https://www.threads.net/@radiofun8/post/DCfEMHHoQ2P/video-revisited-text-to-particle-swiftui-code-httpsgithubcomradiofunparticletotext). Was fun to implement and play around with physics #ios #iosdev #swift #swiftui
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 -> https://youtube.com/@StewartLynch
Some fun with SwiftUI. It's actually not that much code to implement Coverflow with SwiftUI.
#swiftui #ipod #itunes #iosdev