Results 31 issues of Ahmed Khalaf

I learned about the use of unfair locks from this library. Thanks! Anyway, today I stumbled upon [this StackOverflow answer](https://stackoverflow.com/a/66525671/715593) that mentioned that the direct use of unfair locks in...

It might be useful if SVGLayer had a readonly property to access the path with the rendering transformation applied. ---- ## Original title: `path.contains(point)` correctly works only when SVGImageView contentMode...

question
feature request

I used to work on weekends. I was aware of advice against this. However, I thought online writings were too focused on work-life balance (which hasn't been much of an...

# Conventions, conformity, and code review I think every other software team now has a set of code **conventions** to achieve a high level of **consistency**, which is enforced by...

`XCTest` provides a very convenient way that makes testing methods marked as `async` a breeze. Just marking the test method as `async` does the job: ```swift func test_myAsyncMethod() async throws...

Consider the following Swift struct definition: ```swift struct Person { var name: String } ``` If you think the `var` in the struct above should have better been declared as...

The following is a typical view model in an MVVM setup: ```swift class PostsViewModel { @Published var posts: [Post] = [] func viewDidLoad() { // 1. Get an array of...

For the past two years, I've been working almost daily on a Kotlin multi-platform (KMM) codebase. In this post I'll try to note down my experience with it. I'll try...

(Originally published 2019-02-05) Sometimes we need to show an alert, apply a gradient, or conditionally show another view controller on the startup of a view controller. We wish to do...

(Originally published 2019-02-01) Here I should be listing (and categorizing) the most useful iOS Developer Twitter accounts to follow. Last week, I found myself taking a colleague in a tour...