Hey there, I'm Shobhakar Tiwari, an iOS developer since 2014! π Through this channel, Iβm excited to share practical tips and tricks to boost your iOS and Swift skills. π
I'm building a supportive iOS developer community to help you confidently crack iOS interviews through:
π― Live Virtual Mock Interviews
π€ Pair Programming Practice Sessions
β
Test-Driven Development (TDD) Guidance
π iOS Resume Reviews & Feedback
I personally reply to every comment β so donβt hesitate to drop your questions or struggles. Letβs grow together π¬
CodeWithShobhakar
=
π iOS Interview Question of the Day π
πΉ Debouncing in Swift is an important technique to control the frequency of method calls, especially in scenarios like search inputs or button taps.
π‘ Question:
You are implementing a search feature in SwiftUI, where the API call should only be triggered after the user stops typing for 0.5 seconds. Which of the following approaches correctly implements debouncing?
A) Use `DispatchQueue.main.asyncAfter` inside `onChange(of:)`.
B) Use `Timer.scheduledTimer` inside `onChange(of:)`.
C) Use `Combine` with `.debounce(for:scheduler:)`.
D) Use `Task.sleep` inside an async function.
π€ Which one would you choose and why? Let me know in the comments!
#iOS #Swift #SwiftUI #Combine #iOSInterview #MobileDevelopment #iOSJobs #TechInterview
11 months ago | [YT] | 0
View 0 replies
CodeWithShobhakar
If an iOS app is suspended, will it still receive push notifications? If yes, will the push notification delegate method execute when the notification is received?
1 year ago | [YT] | 1
View 0 replies