Apple released a property wrapper called ScaledMetric. ScaledMetric allows you to scale a BinaryFloatingValue according to the dynamic type size category chosen by the user. swiftwithmajid.com/2019/10/09/d...
Majid Jabrayilov
@mecid.bsky.social
1657 Followers
587 Following
Swift Developer: iOS, watchOS, visionOS, tvOS, macOS. https://swiftwithmajid.com
Statistics
-
-
Three error modeling principles described in “A philosophy of software design” book written by John Ousterhout.
- Define errors out of existence
- Mask exception
- Error aggregation swiftwithmajid.com/2022/05/11/m...
Modeling errors in Swift
The new Swift Concurrency feature doesn’t only bring new opportunities for writing safer and more maintainable async code but also changes the way we handle errors. I didn’t use throw-catch keywords…
-
You can easily use the environment view modifier to set the particular environment value using the keypath that the Entry macro creates for you. The Entry macro works for the environment, transactions, container, and focused values. swiftwithmajid.com/2024/07/09/i...
-
The Image Playground framework integrates Apple’s generative image capabilities into Swift, simplifying the creation of visuals from text, drawings, or photos. With a few lines of code, you can generate styled images and integrate them into your app’s experience. swiftwithmajid.com/2025/11/11/g...
-
ImageCreator type has a static property called availableStyles, an array of supported styles. Verify the availability of the selected style and use only the available one, as not all styles may be available on your device. swiftwithmajid.com/2025/11/11/g...
-
Sometimes a huge backlog can help you.
gameinformer.com/2025/11/13/r...
Red Dead Redemption Is Coming To PS5, Xbox Series X/S, Switch 2, and Mobile Next Month With Free Upgrade Paths
It will also be available as part of Netflix games.
-
The Image Playground framework brings Apple’s generative image capabilities right into Swift, making it surprisingly simple to create visuals from text. The core of the framework is the ImageCreator type. swiftwithmajid.com/2025/11/11/g...
-
You might be familiar with the Image Playground app on your Apple devices, which also has a Swift API. This week, we’ll explore how to utilize the Image Playground framework to create image content within our apps. swiftwithmajid.com/2025/11/11/g...
Generating images in Swift using Image Playground
I’m continuing to work on AI-generated content in my apps, and this time, we’ll focus on image generation. You might be familiar with the Image Playground app on your Apple devices, which also has a…
-
SwiftUI provides the FocusState property wrapper that works on all Apple platforms and allows us to focus on a particular view or check if that view is already focused. The usage is effortless. swiftwithmajid.com/2021/08/24/m...
-
Background Tasks framework allows you to schedule work intelligently in the background. We can handle background tasks using the SwiftUI app lifecycle. swiftwithmajid.com/2022/07/06/b...