swiftui

Back Open Paginator
17.01.2025 09:43
juanarzola (@juanarzola@sfba.social)

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




Show Original Post


17.01.2025 08:33
seril (@seril@mastodon.social)

新版本 NeoDB 在 Apple 審核的推動下(審核因為需要跳轉至 Safari 才能登入而被拒絕了)改進了登入邏輯。
1. 使用 webAuthenticationSession api,不會獲取網站 cookies 或植入 scripts,只能獲得返回的登入憑證。
2. 無需反覆登入,如果 Safari 登入了,App 在請求之後也可直接使用已登入的狀態。
3. 登入在 app 內完成

更快速,安全,易用

@neodb





Show Original Post


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


1 ...3 4 5 6 7 8 9 10 11 12 13 ...133
UP