During development in SwiftUI, it is an often question to arise - how to size each element on the screen? The Problem There are basically two choices: keep the dimensions of the element within itselfset the dimensions during initialisation of the element Here's an example of how two approaches look like separately: Hardcoded Size struct … Continue reading SwiftUI Weekly Observations #2
Tag: SwiftUI
SwiftUI Weekly Observations #1
Easy Testing Whenever I am creating a new View, I always create a data model struct that I'd use to instantiate that View. I mark it with @State attribute and the View becomes stateful, meaning that whenever the data model changes, View will get updated by the underlying system. struct ScreenModel { var title : … Continue reading SwiftUI Weekly Observations #1
Notarizing macOS app – XcodeUpdates
Today was rather a random day. First of all, I have been working all day on a commercial product.Nevertheless, I was able to listen to the latest Stacktrace Podcast (@stacktracepod) which was not technical at all (except that advertisement, but nevertheless). I was not listening through it because I am not a big fan of … Continue reading Notarizing macOS app – XcodeUpdates
The Adventures with NSTask & co. (Part 3)
Even though I was not able to resolve the issue, still I figured that I'd rather release the source code for the XcodeUpdates, than keeping it to myself until the release. And by doing that, I was able to share the info about the app with the community of #iOSDevHappyHour - with exactly 18 people! … Continue reading The Adventures with NSTask & co. (Part 3)
The Adventures with NSTask & co. (Part 2)
After preparing the archived build, I was too optimistic about the outcome that was ahead of me. When I have started writing @UpdatesXcode, I was thinking that I would somehow be able to pass through the review process and distribute the app via the Mac App Store. However, even at the stage of notarization, I … Continue reading The Adventures with NSTask & co. (Part 2)
The Adventures with NSTask & co. (Part 1)
After almost a month of coding during sleepless nights my favourite side-project so far, @UpdatesXcode, I have uncovered a world of problems to myself. At the time, I was rushing to finish all of the nice little state handling-related improvements, such as, error handling, or support for a proper blocking of user's input when there's … Continue reading The Adventures with NSTask & co. (Part 1)