In Xcode 15, we got improvements on widgets, which also change A LOT how we handle them in code, we need to take care now of: Live action, animations, Time Lines & App Intents If you download the Widgets example from Apple, you’ll see that it won’t compile in Xcode 15 Beta 2 after create …
Actor-isolated property can not be referenced from a non-isolated context
I was in need some days back to create a mock that conformed to an Actor protocol. And when trying to accessing one of their properties I couldn’t do it. And the error that you see on the title of this post was showed. This was an obvious thing that I found out after reading …
Xcode Assets: How to extract multiple Colors.json values into a CSV file
When you have an app with lots of colors, even colors for different targets (as our application at the moment have) is difficult to organize it, or find a hex value since we’re depending exclusively on the Color.asset and Xcode doesn’t yet provide us with this capability. To find colors we will need the semantic …
“KeyValuePairs” in Swift or how to create an ordered dictionary
I was facing one day with the strange –at the time– task to send to a third party application an ordered collection key/value pair from an iOS app. I then wondered if there was a collection type, capable of doing such thing in Swift since my knowledge at the time of a dictionary in this …
Creating a Post-commit hook with Swiftlint Autocorrect.
Have you ever wondered if you could launch a git hook that triggers a certain script that could help you do some task?. Me too!. Well, not really, until I needed it 😀 In my case, I work with Xcode (iOS dev here, indeed) and it’s well known between us, iOS developers, that Xcode doesn’t …
Create a local formula for homebrew (tap it!)
Before we dive in all the steps needed on how to create a formula, that you will use locally (ergo, not uploading it to homebrew public list), let’s briefly explain what is tap and formula in Homebrew. Formula: A formula is a package definition written in Ruby. A formula provides instructions and metadata for Homebrew to install a …
Honyaku: web app to generate iOS and Android localizable files
I was working at Rentalia were we used 7 languages in the mobile application and also in the web. So the process of translating those languages and embed them into the app wasn’t automatic, in fact it was done manually when I’ve arrived. They were using a CSV file where we could find all of …
Configuración de Appium para iOS
Configuración Appium iOS 1. Instalar Appium…en mi caso con sudo (siguiendo las instrucciones de: https://github.com/appium/appium/blob/master/docs/en/appium-setup/running-on-osx.md) sudo npm install -g appium 2. Instalar Appium Instruments (Without delay), este enlace web se explica las razones https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/iwd_xcode7.md y las instrucciones git clone https://github.com/appium/appium-instruments.git En mi caso, cree un espacio para almacenar el repo 3. Luego hay que ejecutar …
Swift: Internacionalización de Strings
Estás escribiendo tu app, digamos que estás en tu zona ZEN, y por obvias razones quieres que sea adaptable a diferentes idiomas. Pero eso en cierta manera rompe el MOJO del ZEN, porque tienes que crear el fichero de internacionalización y comenzar a aplicar NSLocalizedString en TODO. En mi caso, cuando estaba en ello me …