Reason it’s a bad idea to reinstall #SwiftUI views on theme change (like by using the color scheme as part of a view identity): it happens when the app goes to the background, apparently for screenshotting, which can result in surprising side effects (like bogus view appearances when the app backgrounds).
I’ve done before to work around some issues, but it just bit me today
新版本 NeoDB 在 Apple 審核的推動下(審核因為需要跳轉至 Safari 才能登入而被拒絕了)改進了登入邏輯。
1. 使用 webAuthenticationSession api,不會獲取網站 cookies 或植入 scripts,只能獲得返回的登入憑證。
2. 無需反覆登入,如果 Safari 登入了,App 在請求之後也可直接使用已登入的狀態。
3. 登入在 app 內完成
更快速,安全,易用
#NeoDB #BuildInPublic #swiftui #iOS @neodb
#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