RARui Aurelianoinruiaureliano.hashnode.dev路Aug 20, 2024 路 1 min readAn "If" is just an "If", but ...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(...00
RARui Aurelianoinruiaureliano.hashnode.dev路Jun 25, 2022 路 1 min read馃摑 Open TextEdit as plain textMost 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...00
RARui Aurelianoinruiaureliano.hashnode.dev路Jun 24, 2022 路 1 min read馃く Unmount volume on launchSo 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...00
RARui Aurelianoinruiaureliano.hashnode.dev路Nov 7, 2019 路 1 min read鈿狅笍 Fixed leading and trailing constraints may cause clippingWhen 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...00
RARui Aurelianoinruiaureliano.hashnode.dev路Jun 22, 2019 路 1 min read馃洜 Xcode Build VariablesHow 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 ...00