Marius Kažemėkaitis

77 Followers
99 Following
88 Posts
CTO @OBDeleven 🚗 I Enjoy Platform Engineering, Developer Experience, tooling and all that boring stuff nobody wants to touch 🙃 | Experienced iOS Engineer with a strong passion for innovation.
Detourhttps://getdetour.app

Want to try the Cursor editor everyone's buzzing about with your Xcode project? Here's a simple trick to save you hours of headache! 🚀

Just install the Swift extension and ADD Package.swift file to your project's root folder. Code indexing will start instantly and voilà! Code completion, inline docs, jump-to-definition all working smoothly ❤️ And, of course, all that shiny AI stuff 🤖 #CursorAI​​​​​​​​​​​​​​​​ #swiftui #Swift #Xcode

Here we go! Happy #iOS18 update day everyone! 🚀

Swift Concurrency 🚅

We deal with async/await code every day. We use Task. But we don't often think about Task inheritance. 🤘

- Tasks inherit the parent task’s attributed, like priority, actor.
- Cancelling a parent task automatically cancels the child task.
- Detached Tasks don't inherit anything and you're responsible for cancelling them (in child task context)

And it's better to avoid detached task if it’s possible

#Swift #SwiftUI #AsyncAwait #Concurrency

I would love to have this as a poster in front of me at all times 🙃 And by the way, a very good book

https://nostarch.com/kill-it-fire

#Developers #Books

Kill It with Fire

Kill It with Fire chronicles the challenges of dealing with aging computer systems, along with sound modernization strategies.

Let's see what we have, Xcode 14.3.0 beta 3 is now available for download 🤓

#Xcode #iOSDev #Swift #SwiftUI

At least it’s a fun time working on the “smart insert” feature. 🤓❤️

It’s working pretty well, I just can’t figure out what to do with the popup that asks me how I want to insert the location: smartly or just at the end, like a destination. 🤔

#iOSDev #Swift #buildinpublic

Keeping your codebase consistent and maintainable sometimes may be very hard. SwiftLint is here to help you. But that's not what I'm about now.

👮🏻‍♂️ Cyclomatic Complexity

Have you ever seen: "Complexity of function bodies should be limited”. What does that mean? 🤔

It's a metric that indicates the maximum number of independent paths inside a code e.g., a function. Higher the number - harder to understand the code and this is the number of test cases you'll need. 🤓

#iOSDev #Swift #engineering

UIKit will be around for a long time with us, but you probably don't want to keep using it when building new functionality on top of large and long-lived projects. As complicated as it may seem at first, it's not so bad 🤩

UIHostingController is useful not only for displaying full size screens, but you can use it to insert small parts of the SwiftUI into your old UIKit screens.

For example a custom UITableView header made with SwiftUI. 🤓

#SwiftUI #iOSDev #UIKit

Is this Xcode 14.3 beta bug of the new .presentationBackgroundInteraction(.enabled) view modifier for .sheet, when only one presentation detent is set? Or is it supposed to work like that?

#Swift #iOSDev #SwiftUI #Xcode

🖤 Dark Mode is sort of ready, but for some reason I’m not 100% happy with it 🙈 However, I think it’ll be okay for the first release at least 😀 Or is it really bad?

#iOSDev #Swift #DarkMode