---
title: "Daniel Kašaj (@DanielKasaj) | Hashnode"
description: "I develop iOS and macOS apps. Read the latest articles by Daniel Kašaj on Hashnode."
url: "https://hashnode.com/@DanielKasaj"
---

@DanielKasaj

# Daniel Kašaj

@DanielKasaj · Joined January 2023

I develop iOS and macOS apps

### [SwiftUI ScrollView Centered Items with ScrollTargetBehavior](https://articles.danielkasaj.com/swiftui-scrollview-centered-items-with-scrolltargetbehavior?utm_source=hashnode&utm_medium=feed)

Let’s make a ScrollView show a bunch of views horizontally, and center each one as the user scrolls, while also showing edges of adjacent ones. In a hurry to get the entire code? It’s at the bottom of the article. Any time a ScrollView scrolls, it c...

2 min read · [articles.danielkasaj.com](https://articles.danielkasaj.com/swiftui-scrollview-centered-items-with-scrolltargetbehavior?utm_source=hashnode&utm_medium=feed)

[Dec 21, 2024](https://hashnode.com/posts/swiftui-scrollview-centered-items-with-scrolltargetbehavior/6766a42de1cf783a66a62dff)

### [Tips for localizing SwiftUI apps](https://articles.danielkasaj.com/tips-for-localizing-swiftui-apps?utm_source=hashnode&utm_medium=feed)

You don't ever have to touch Localizable.strings

2 min read · [articles.danielkasaj.com](https://articles.danielkasaj.com/tips-for-localizing-swiftui-apps?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/tips-for-localizing-swiftui-apps/64e9d0c2209733837e3eeb79) [Aug 26, 2023](https://hashnode.com/posts/tips-for-localizing-swiftui-apps/64e9d0c2209733837e3eeb79)

### [error \[PHPhotosErrorDomain\] -1: The operation couldn’t be completed. (PHPhotosErrorDomain error -1.)](https://articles.danielkasaj.com/error-phphotoserrordomain-1-the-operation-couldnt-be-completed-phphotoserrordomain-error-1?utm_source=hashnode&utm_medium=feed)

If you're seeing PHPhotosErrorDomain error -1 after attempting to add an image to Simulator via xcrun simctl addmedia <simulatorID> image.jpeg it might be because the image.jpeg is in a folder that is synced to your iCloud Drive. Just copy the file t...

1 min read · [articles.danielkasaj.com](https://articles.danielkasaj.com/error-phphotoserrordomain-1-the-operation-couldnt-be-completed-phphotoserrordomain-error-1?utm_source=hashnode&utm_medium=feed)

[Aug 17, 2023](https://hashnode.com/posts/error-phphotoserrordomain-1-the-operation-couldnt-be-completed-phphotoserrordomain-error-1/64de50b0ca06d9704d4c90f8)

### [Extend Swift types with static parameters for reuse, consistency, and faster coding](https://articles.danielkasaj.com/extend-swift-types-with-static-parameters-for-reuse-consistency-and-faster-coding?utm_source=hashnode&utm_medium=feed)

I believe there comes a time when every developer adopts a technique for reusing common parameters. For years, I’ve been keeping all of my ”settings” in a single place i.e. which I would use like: label.textColor = GlobalSettings.darkRed direction...

1 min read · [articles.danielkasaj.com](https://articles.danielkasaj.com/extend-swift-types-with-static-parameters-for-reuse-consistency-and-faster-coding?utm_source=hashnode&utm_medium=feed)

[Jul 12, 2023](https://hashnode.com/posts/extend-swift-types-with-static-parameters-for-reuse-consistency-and-faster-coding/64ae4428a2b4e3b3c24bea83)

### [Put Swift's Logger to good use: log everything & keep your console decluttered at the same time](https://articles.danielkasaj.com/swift-logger-tutorial-good-practice?utm_source=hashnode&utm_medium=feed)

Logger is an Apple framework available since Xcode 12 / iOS 14 and it’s the best way to track your app’s behavior. It offers various levels of logging — info, warning, error, and more — which you sprinkle around your code so that you can monitor the ...

1 min read · [articles.danielkasaj.com](https://articles.danielkasaj.com/swift-logger-tutorial-good-practice?utm_source=hashnode&utm_medium=feed)

[Jun 23, 2023](https://hashnode.com/posts/swift-logger-tutorial-good-practice/649540a2f992b0197b9c1343)
