iOS Dev Tip ๐ก
Easily monitor the deviceโs thermal state to optimize performance during overheating.
โ learnandcodewithenid.com
@will-lumley.bsky.social
Mainly a senior iOS engineer, but love to dabble in web development and robotics/embedded-systems in my spare time. Father to four amazing children, and husband to a beautiful wife. Checkout my stuff: https://lumley.io http://github.com/will-lumley/
iOS Dev Tip ๐ก
Easily monitor the deviceโs thermal state to optimize performance during overheating.
โ learnandcodewithenid.com
Making this argument and then hanging the entire load on TRY is fucking hilarious:
10.04.2025 22:29 โ ๐ 489 ๐ 40 ๐ฌ 11 ๐ 4๐กStarting with iOS 18.0, you can create mesh gradients in SwiftUI using MeshGradient.
โ learnandcodewithenid.com
FaviconFinder by @will-lumley.bsky.social is awesome!
github.com/will-lumley/...
Thank you for the shoutout @weijianduan.bsky.social! Iโm really glad itโs managed to help you :)
10.01.2025 23:37 โ ๐ 3 ๐ 0 ๐ฌ 1 ๐ 0There is a convenient brightness(_:) modifier in #SwiftUI that can be used to adjust the intensity of colors in our views. We can lighten the colors by passing it values from 0 to 1 or darken them using negative values:
nilcoalescing.com/blog/AdjustT...
1517, Martin Luther
28.12.2024 18:37 โ ๐ 22 ๐ 2 ๐ฌ 1 ๐ 0itโs forbidden in their culture but a vacuum cleaner wants nothing more than to eat itโs own cord
26.12.2024 17:13 โ ๐ 1353 ๐ 141 ๐ฌ 20 ๐ 2Why I ๐ the web.
#macOS menu bar app that shows how full the ISS urine tank is in real time. ๐ฐ๏ธ๐ฝ
Yurnining to check this out.
github.com/Jaennaet/pIS... #Swift
*click* React Native. *click* Flutter. *click* .....SwiftUI. *click* GTK. Easy. *click* ......Qt6.
23.12.2024 01:19 โ ๐ 8 ๐ 2 ๐ฌ 0 ๐ 0How embarrassing! Maybe itโs just an issue on my machine then ๐
15.12.2024 06:36 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0CMD+Space doesn't bring up Spotlight anymore and this has ruined my opinion on macOS and life.
15.12.2024 05:07 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0How so?
15.12.2024 03:20 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0Completion > perfection
13.12.2024 04:51 โ ๐ 1 ๐ 1 ๐ฌ 0 ๐ 0With #swiftlang It's easy to forget that the diff between a point-free and pointed styles of function argument passing is not just syntactic but semantic. It's normal to consider these to be equivalent:
1. [1, 2].map(String.init)
2. [1, 2].map { String($0) }
But we shouldn't forget that: 1/4
Do you know about the take function for the Optional type? It takes the value if it is not nil and toggles the variable to nil.
https://buff.ly/3Zin2Wv
I've always just used GPT-4o, but will give o1 a try after this. Keen to see the difference.
09.12.2024 03:32 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0A problematic little #swiftlang pattern I often see is "unwrap-then-nullify" for optional values that hold some temp state. This oft comes up when dealing with local caches or scrollOffsets or in-flight tasks, etc. Forgetting to nullify a value to "reset" state is a common mistake. Use take method.
06.12.2024 12:28 โ ๐ 28 ๐ 2 ๐ฌ 3 ๐ 0If โthe boy who cried wolfโ was a notification
05.12.2024 07:03 โ ๐ 2 ๐ 0 ๐ฌ 0 ๐ 0Hypothetically, imagine not knowing Swift Testing doesn't have a built-in timeout function, and then writing a bad unit test and pushing it, going to sleep, and then waking up and finding out you've used all your Github Action minutes for the month. On this second day of the month.
Hypothetically.
Currently working on a Swift project that uses Combine, and because it the year of our lord 2024 I'm using Swift Testing to write my unit tests.
But I was struggling with covering my Combine code with Swift Testing.
Here's how I managed to solve the problem!
lumley.io/blogs/swift-...
#iOS #swift
Congrats man! Looks awesome!
29.11.2024 04:37 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0Hello, old friend fuckingblocksyntax.com
28.11.2024 19:05 โ ๐ 1 ๐ 1 ๐ฌ 0 ๐ 1VSCode UI is so ugly it takes the joy out of programming
27.11.2024 18:28 โ ๐ 44 ๐ 1 ๐ฌ 13 ๐ 2Personally I prefer `private`, but Iโm happy to be persuaded to the other side! Why do you prefer `fileprivate`?
27.11.2024 09:24 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0UIKit is a craftspersonโs tool.
React Native is a business decision.
Whyโs that? :) (Iโve never had to use one before)
26.11.2024 11:57 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0100%! Makes it so painful when you need to go over a certain part of the content again and you end up having to search through the video for where they discussed that part.
26.11.2024 02:39 โ ๐ 2 ๐ 0 ๐ฌ 0 ๐ 0GRDB > Core Data > Swift Data
#iOS #swift