Explore tweets tagged as #dispatchqueue
@Aivars_Meijers
Aivars Meijers
2 years
Seems that Apple is pushing us to rewrite everything in clean SwiftUI :). First, Xcode 15 broke all the fonts in Story Boards. Now some weird UI rendering bug appeared in CollectionView, which was untouched and working fine for years. DispatchQueue.main.async { [weak self] in
Tweet media one
15
8
140
@full_stack_life
Salman
2 years
Finished making a toy app to interface ChatGPT API with SwiftUI and wanted to spice it up a bit by mimicking typing effect. ChatGPT 3 .5 used DispatchQueue to update text on first try while V4 went with Combine & Timer subscription but had multiple errors that I needed to work
1
1
7
@krzyzanowskim
Marcin Krzyzanowski
9 months
wake up babe, new SwiftUI crash just shipped. workaround:.a) DispatchQueue.main.async { }.b) apply random modifiers to random places hoping it help
Tweet media one
8
11
127
@aniiltaskiran
Anıl T.
2 years
keşke hayatta da çoğu şeye DispatchQueue.main.async vererek kurtulabilsek 🚬
Tweet media one
4
0
28
@star__hoshi
スターホシ
2 years
4年前に書いたコード、絶対意味があって DispatchQueue.main.asyncAfter してると思うんだけどなんでこれしてるのか全然わからん. 消して問題なさそうだけどなんか消すと怖いやつ
Tweet media one
1
0
4
@SwiftUI_newbie
Mr SwiftUI
2 years
I’ve done the typewriter effect using dispatchQueue. But using animatableData works just as fine. Picked this up from the Pro SwiftUI book 👌
4
6
94
@SwiftUI_newbie
Mr SwiftUI
1 year
Type writter effect using dispatchQueue. Could be a good use case for an onboarding view, launch screen, loading view, animation or something similar 👌
0
2
9
@everton_dev
Everton Carneiro
2 years
Swift Challenge #03.Level: 🟢🟢⚪️. Have a look at this ViewController:. In the fetchData method, we use a closure inside DispatchQueue.main.async. Is it necessary to capture self here? Why or why not?
Tweet media one
7
4
59
@giorgio_latour
Giorgio
1 year
Here's a demo of the recipe scanning feature in grocemate. This was super difficult for me and I changed the whole implementation like 5 times. serial DispatchQueue, firebase auth, vision, cloud functions, uiviewcontrollerrepresentable all working together 🤝
6
2
60
@hybridcattt
Marina Vatmakhter (Gornostaeva) ✨
2 years
The only right way to add DispatchQueue.main.async to fix a bug - with a big fat comment on top 👇
Tweet media one
5
3
89
@giorgio_latour
Giorgio
2 years
literally everytime i set this, it's in DispatchQueue.main.async, why am i getting purple error of death
Tweet media one
3
0
1
@aheze0
Andrew Zheng
1 year
@alpennec @ChristianSelig Feels weird, but just add DispatchQueue.main.async, so it renders on the next cycle
4
3
73
@urklc_
Uğur Kılıç
1 year
• Thread nedir?.• Concurrency vs Parallelism.• Main (UI) vs Background Thread. Asenkron Programlamanın temellerinden Swift'te GCD'nin göz bebeği DispatchQueue 'ya uzanan yol. 🧐. Nasıl 30 dakikaya sığdığını sormayın, bilmiyorum. 😅.
3
7
72
@michael_tigas
Michael Tigas
2 years
No more stacking DispatchQueue's or Task.sleeps to chain simple animations in SwiftUI. 🙏. #WWDC23
Tweet media one
0
0
14
@krzyzanowskim
Marcin Krzyzanowski
2 years
Days since I solved a problem with `DispatchQueue.main.async`: 0. f**** I lost 4 hours on that. Refactored code twice. Changed approach 3 times. Works when debugging slowly step by step - doesn't work when run on its own. (timing differs when debugging). 😤 this 💩 I'm pissed.
Tweet media one
5
0
49
@hhiroshi_ja
Hiroshi🫨®
1 year
SDK v2.0.8リリース。色々改善しましたが、個人的にはパフォーマンス周りの改善ができてよかったです。特にMulticastDelegateのロックをDispatchQueue.syncからos_unfair_lockに変えたことによる差が大きく出ていますね。
Tweet media one
1
0
3
@mecid
Majid Jabrayilov
2 years
We can use DispatchQueue.concurrentPerform function to verify the thread safety of our types using unit tests. Don't wait for strange crashes from production, invest your time earlier into safe types.
Tweet media one
2
7
67
@FaiChou_zh
FaiChou
8 months
你们会使用 Task 来包装这种异步任务吗?这种方式虽然在语法上满足了“异步需求”,但并没有充分利用系统的并发优势,反而会占用资源,拖慢其他任务的调度。正确做法是使用 DispatchQueue 来创建一个 background 来执行文件 I/O 操作。. #SwiftUI
Tweet media one
3
0
1
@SamProgramiz
Sam Programiz
7 months
Tasks, Actors and Sendable types pretty much satisfy all needs for concurrency within Swift. DispatchQueue is borrowed from Objective-C but with Tasks and Actors I don't see why I would still need to use DispatchQueue elements like main.async in place of MainActor. 10/10 toolbox
Tweet media one
0
0
3