---
title: "Rui Aureliano (@ruiaureliano) | Hashnode"
description: "iOS & macOS Engineer. Read the latest articles by Rui Aureliano on Hashnode."
url: "https://hashnode.com/@ruiaureliano"
---

@ruiaureliano

# Rui Aureliano

@ruiaureliano · Funchal, Portugal 🇵🇹 · Joined June 2022

iOS & macOS Engineer

[Website](https://ruiaureliano.com/)

### [An "If" is just an "If", but ...](https://ruiaureliano.hashnode.dev/an-if-is-just-an-if-but?utm_source=hashnode&utm_medium=feed)

This is so simple and make sense, but I just realized this today 🧠🧠 Imagine that you have these two functions func a() -> Bool { sleep(10) //simulate a very a heavy function return Bool.random() } func b() -> Bool { return Bool.random(...

1 min read · [ruiaureliano.hashnode.dev](https://ruiaureliano.hashnode.dev/an-if-is-just-an-if-but?utm_source=hashnode&utm_medium=feed)

[Aug 20, 2024](https://hashnode.com/posts/an-if-is-just-an-if-but/66c4a7928b62bbd94ca6380c)

### [📝 Open TextEdit as plain text](https://ruiaureliano.hashnode.dev/open-textedit-as-plain-text?utm_source=hashnode&utm_medium=feed)

Most of the time I just want to use TextEdit to write some temporary notes, and I want it as a plain text, so this is annoying for me Luckily we can fix it, we just need to open Terminal app defaults write com.apple.TextEdit NSShowAppCentricOpenPane...

1 min read · [ruiaureliano.hashnode.dev](https://ruiaureliano.hashnode.dev/open-textedit-as-plain-text?utm_source=hashnode&utm_medium=feed)

[Jun 25, 2022](https://hashnode.com/posts/open-textedit-as-plain-text/62b6c7ba92447c9aed5b7173)

### [🤯 Unmount volume on launch](https://ruiaureliano.hashnode.dev/unmount-volume-on-launch?utm_source=hashnode&utm_medium=feed)

So here is my setup, I have 2 volumes (macOS Monterey and macOS Ventura), and my goal is to have just the required volume for each macOS So when launching macOS Monterey I just want the macOS Ventura volume unmounted. 1) Using diskutil it's very eas...

1 min read · [ruiaureliano.hashnode.dev](https://ruiaureliano.hashnode.dev/unmount-volume-on-launch?utm_source=hashnode&utm_medium=feed)

[Jun 24, 2022](https://hashnode.com/posts/unmount-volume-on-launch/62b5aa4ab86f939ac81b2fee)

### [⚠️ Fixed leading and trailing constraints may cause clipping](https://ruiaureliano.hashnode.dev/fixed-leading-and-trailing-constraints-may-cause-clipping?utm_source=hashnode&utm_medium=feed)

When using storyboard and auto-layout we see sometimes this warning So what does this means? after some digging this seems to happen when using components with text, and seems to be related to localization. So I made this simple sample, just a UIVie...

1 min read · [ruiaureliano.hashnode.dev](https://ruiaureliano.hashnode.dev/fixed-leading-and-trailing-constraints-may-cause-clipping?utm_source=hashnode&utm_medium=feed)

[Nov 7, 2019](https://hashnode.com/posts/fixed-leading-and-trailing-constraints-may-cause-clipping/62b44451b86f939ac81afbfe)

### [🛠 Xcode Build Variables](https://ruiaureliano.hashnode.dev/xcode-build-variables?utm_source=hashnode&utm_medium=feed)

How often do we need to use Xcode build Variables? One of the most used cases is when we need to build a New Run Script Phase, variables like $SRCROOT, $PROJECT\_DIR and SWIFT\_VERSION are used by many people, but how many of those variables exist? is ...

1 min read · [ruiaureliano.hashnode.dev](https://ruiaureliano.hashnode.dev/xcode-build-variables?utm_source=hashnode&utm_medium=feed)

[Jun 22, 2019](https://hashnode.com/posts/xcode-build-variables/62b442dc92447c9aed5b1b6b)
