StillCore — мониторинг чипа для Mac, который я всегда хотел

StillCore — лёгкое приложение для отслеживания энергопотребления, частоты, нагрузки, температуры и состояния батареи из строки меню macOS. Это анонс и небольшая история о том, как я его писал.

https://habr.com/ru/articles/1041786/

#swiftui #xcode #macos #rust

StillCore — мониторинг чипа для Mac, который я всегда хотел

Не знаю, на чём делать акцент в статье: Смотрите, я сделал классное приложение! Может быть, вам пригодится. Или: Смотрите, я написал приложение на Swift и Rust не зная этих языков, полагаясь на LLM, и...

Хабр

📐 ¿Sabías que una sheet de SwiftUI puede ajustarse automáticamente a la altura real de su contenido?

Aunque presentationDetents nos permite usar tamaños como .medium, .large o alturas personalizadas, SwiftUI no incluye un modo nativo que diga simplemente: “ocupa exactamente lo que necesites”.

https://blog.arturorivas.com/posts/sheets-swiftui-ajustadas-al-contenido/

En este artículo explico cómo construir un modificador reutilizable que:

✅ Mide automáticamente la altura del contenido
✅ Ajusta el tamaño del sheet en tiempo real
✅ Permite combinar altura dinámica con .medium y .large
✅ Se adapta a cambios de contenido después de presentarse
✅ Evita algunos problemas habituales de layout y accesibilidad

Es una de esas pequeñas mejoras que no suelen aparecer en las especificaciones, pero que marcan una gran diferencia en la sensación de calidad de una interfaz.

Si trabajas con confirmaciones, filtros, selectores o formularios compactos en SwiftUI, esto te interesa.

#Swift #SwiftUI #iOSDev #AppleDeveloper #MobileDevelopment #Xcode

Sheets en SwiftUI que se ajustan automáticamente a su contenido

📐 Las sheet de SwiftUI funcionan muy bien cuando aceptas los tamaños que el sistema propone. El problema aparece cuando tu interfaz no encaja en niguno de esos tamaños. Una vista pequeña queda flotando dentro de un sheet demasiado alto. Una vista algo más grande puede quedar cortada. Y una pantalla que solo necesita presentar una confirmación breve termina ocupando gran parte de la pantalla sin necesidad. Desde iOS 16, SwiftUI permite controlar la altura de una hoja con presentationDetents, usando valores como .medium, .large, .height(...) o .fraction(...). Es una mejora enorme frente al comportamiento inicial de los sheets, pero sigue teniendo una limitación importante: no existe un detent nativo que diga simplemente “mide el contenido y usa esa altura”.

Swift Pills
Spent a fascinating couple of days using Codex to analyze hitch reports from Xcode Instruments, you can give Codex an entire .trace file and it knows how to parse it and explain the results! #xcode #codex

Present, teach, and create anywhere on your screen!! (Free)

https://magicappslab.com/sketchover.html

#sketchover #draw #apple #osx #xcode #indiedev #dev

Sketch Over v1.1 is almost fresh out of the oven!

https://magicappslab.com/sketchover.html

#app #apple #icon #dev #xcode #swift #design

Please #Apple #Xcode team, do something? 🥺

I like iOS Simulator, but using it became more and more unbearable - causing my poor M1 Pro MBP to takeoff (I almost never hear fans on it usually) after a while and development simply slow as all cores are occupied by this (medianalysisd process specifically, within SimulatorTrampoline)

Our CI runner is a bare-metal dedicated server with an AMD Epyc 7413 24c/48t 2.65/3.6 GH, 128 GB ECC 3200 Mhz RAM and NVMe SSD.

I have just configured a Mac mini M4 24GB as runner for Xcode builds.

Just for kicks, I also activated a docker runner on the Mac mini and handed it a random job.

That job takes an average of 4m40s to run on the AMD server.

It took 1m20s to run on the M4 Mac mini.

🤯

#mac #AppleSilicon #baremetal #cpu #cpuwars #xcode #cicd

Are you interested in finding the SwiftUI views in your app that update the most? The following article shows how to use the SwiftUI instrument to find the views that update the most:

https://swiftdevjournal.com/posts/swiftui-frequent-view-updates/

#Xcode #SwiftUI

Find the SwiftUI Views that Update the Most Using Instruments · Swift Dev Journal

@Shadowfetch This approach has many advantages, and it’s what I try to do. I have a sneaky feeling that packages tend to get multi-purpose because it’s easier to add to an existing one than go through the hassle of creating a new one and integrating it. Chaos begets chaos (looking at you #Xcode).

I should try to get a #FuckingXcode tag going. Because fucking #Xcode.

Run a test suite, all the tests get green checkmarks next to them. Then write a test that fails. To debug the test, run just that one test. All checkmarks remain while you run that one test, despite others not running. If you break another test, it looks like it still passes. If you use cmd-opt-ctrl-g to rerun the last test set run, it LOOKS like they all pass, but they don't. Xcode keeps stale pass icons instead of removing or greying them out. If don't remember you're not running the entire suite… ¯⁠\⁠_⁠(⁠ツ⁠)⁠_⁠/⁠¯

Fucking Xcode.