<feed xmlns="http://www.w3.org/2005/Atom"> <id>/</id><title>Code Swiftly</title><subtitle>A minimal, responsive and feature-rich Jekyll theme for technical writing.</subtitle> <updated>2026-11-24T16:48:01+00:00</updated> <author> <name>Avadhesh Sharma</name> <uri>/</uri> </author><link rel="self" type="application/atom+xml" href="/feed.xml"/><link rel="alternate" type="text/html" hreflang="en" href="/"/> <generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator> <rights> © 2026 Avadhesh Sharma </rights> <icon>/assets/img/favicons/favicon.ico</icon> <logo>/assets/img/favicons/favicon-96x96.png</logo> <entry><title>Comparing the use cases of async and sync on both serial and concurrent queues</title><link href="/posts/use_cases_sync_async/" rel="alternate" type="text/html" title="Comparing the use cases of async and sync on both serial and concurrent queues" /><published>2024-11-05T06:10:00+00:00</published> <updated>2024-11-06T13:39:04+00:00</updated> <id>/posts/use_cases_sync_async/</id> <content type="text/html" src="/posts/use_cases_sync_async/" /> <author> <name>avadhesh</name> </author> <category term="Swift" /> <summary>Queue Type Method Description When to Use Example Scenario Serial Queue sync Executes the block synchronously, blocking the current thread until the block finishes. When you need to ensure a specific order of execution and don’t mind blocking the current thread. Updating a shared resource like a database or file system. ...</summary> </entry> <entry><title>Use closures to implement data binding</title><link href="/posts/Data-Binding-Box/" rel="alternate" type="text/html" title="Use closures to implement data binding" /><published>2024-10-23T06:10:00+00:00</published> <updated>2024-10-23T06:22:00+00:00</updated> <id>/posts/Data-Binding-Box/</id> <content type="text/html" src="/posts/Data-Binding-Box/" /> <author> <name>avadhesh</name> </author> <category term="Swift" /> <category term="MVVM" /> <summary>In Swift, observing changes to variables is crucial for building responsive and dynamic applications. While property observers like didSet are useful, they can sometimes be limiting. The Box class provides a more flexible approach to observing value changes. The Observer Pattern The Box class implements a simplified version of the observer pattern. This design pattern promotes loose coupling b...</summary> </entry> <entry><title>Thread Safety in Swift - Race Condition Problem</title><link href="/posts/Thread-Safety-in-Swift-Race-Condition-Problem/" rel="alternate" type="text/html" title="Thread Safety in Swift - Race Condition Problem" /><published>2024-10-16T06:10:00+00:00</published> <updated>2024-10-16T08:19:18+00:00</updated> <id>/posts/Thread-Safety-in-Swift-Race-Condition-Problem/</id> <content type="text/html" src="/posts/Thread-Safety-in-Swift-Race-Condition-Problem/" /> <author> <name>avadhesh</name> </author> <category term="Swift" /> <summary>Concurrency in Swift is a powerful tool, allowing us to write efficient and responsive applications. However, it also brings with it the responsibility of ensuring thread safety. Let’s delve into a common concurrency pitfall, using a practical example with DispatchQueue and DispatchGroup. Scenario: The following code, designed to increment a shared resource using a DispatchGroup and concurrent...</summary> </entry> <entry><title>iOS App Development Resources</title><link href="/posts/iOS-App-Development-Resources/" rel="alternate" type="text/html" title="iOS App Development Resources" /><published>2024-10-15T03:33:00+00:00</published> <updated>2024-11-08T04:55:33+00:00</updated> <id>/posts/iOS-App-Development-Resources/</id> <content type="text/html" src="/posts/iOS-App-Development-Resources/" /> <author> <name>avadhesh</name> </author> <category term="Development" /> <summary>Human Interface Guidelines Links: Apple’s Human Interface Guidelines Web-based continuous localization Links: weblate lokalise crowdin transifex Mobile System Design Links: A Simple Framework For Mobile System Design Interviews Interview Preparation Resources - Tjeerd in ‘t Veen Quality and Performance Improvement Links: Emerge Tools Interview Links: iOS Developer...</summary> </entry> <entry><title>What's new in C++ Interoperability in Swift 5.9</title><link href="/posts/C++-Interoperability_in_Swift_5.9/" rel="alternate" type="text/html" title="What&amp;apos;s new in C++ Interoperability in Swift 5.9" /><published>2023-09-01T06:10:00+00:00</published> <updated>2024-10-10T16:45:36+00:00</updated> <id>/posts/C++-Interoperability_in_Swift_5.9/</id> <content type="text/html" src="/posts/C++-Interoperability_in_Swift_5.9/" /> <author> <name>avadhesh</name> </author> <category term="Swift" /> <summary>Introduction For some types of APIs, Swift 5.9 provides bidirectional compatibility with C++ and Objective-C++. Swift 5.9 introduced direct interoperability between Swift and C++ types and functions. Implementation Configuration Step 1: Build Settings &amp;gt; Swift Complier - Language &amp;gt; C++ and Objective-C Interoperability &amp;gt; Select C++/Objective-C++ Step 2: Import C++ file i.e [...</summary> </entry> </feed>
