I always thought that setting iOS environment was "complex": installing Xcode, Xcode dev tools, simulator, probably ruby + fastlane, etc...
And then... I tried to make some backend development for my company. iOS environment setup is so easy 😂
71
Finally had time to check what was going on with my project when compiling with Xcode 16.2/16.3
Assets.car gets way bigger (57-> 161mb). Some assets go from 2mb to 20mb.
Opened a ticket to apple. Hopefully it will get fixed.
72
Just discovered that using containerRelativeFrame inside a HStack inside a ScrollView retriggers everytime you scroll.
Moving to LazyHStack would fix the issue but I can't for various reasons.
So in short: don't use ScrollView + HStack + containerRelativeFrame 😅
Just stumbled on this exact "bug".
forums.swift.org/t/nsstring-…
I'm started to wondering if I should laugh or cry 😅😂
1
71
Over the years SwiftUI has improved. But I'm also seeing countless bugs in each version. Some very important like this one (I face it too).
forums.developer.apple.com/f…
But after many months... still not fixed :(
1
79
I would avoid using Xcode 16.2 for now:
- It increased our app size by 35Mo
- Previews are not working with iOS18
🤡
1
2
111
Seriously there are some things that are broken like hell in SwiftUI. Just stumbled on this bug:
stackoverflow.com/questions/…
Worst thing: if set a custom TextField style, it gets called 3 times. 🤦♂️
86
(Backend) developers still find ways to surprise me.
Latest idea: sending ids that can't be used as such. Because they are in the form of "Object:ID". So frontend need to parse them to get the ACTUAL id and send it to backend (whenever needed). 🙃
70
Even though you probably want your object to be initialized only once, this is yet another case/reason why having side effect in init is not a good idea
forums.swift.org/t/observabl…
53
Java interoperability... in Swift. By the Swift team 👀
forums.swift.org/t/jextract-…
1
50
Interesting article
swiftwithvincent.com/blog/ba…
But one thing as I already said: don't put side effect inside your init! That's by far the BEST way of avoiding issues.
1
38
Tip#16: Keep your processes simple
Don’t complexify your validation processes. The more you add the less efficient you are. It’s bureaucracy.
👉 Use Trunk Based Development
👉 Communication over documentation
46
Ever tried to run `swift package run` from Xcode build phase? Here's how to do it👇
swiftunwrap.com/article/runn…
1
39
Tip #29: Look to other platforms
Sometimes we think we know more than others or that our community is the best. Maybe it’s true 😆. But you still have nice things to learn from others 😉
👉 Look to other languages
👉 Look to other frameworks
50
Tip #12: Don’t give the wrong naming to the wrong class.
People tend confuse naming with role.
It’s not because you're naming something “potato” that it magically make it one!
👉 THINK about what your objet DO before naming it
48
Tip #44: It’s OK to fail
You can’t succeed everything nor in in the first try. Most important is to LEARN.
👉 Ask yourself WHAT failed
👉 Ask yourself WHY it failed
👉 Ask yourself WHAT you learned
👉 Ask yourself WHAT you’d do to make it succeed next time
52
Tip #33: Use reactive programming wisely
React prog. is cool but like usual: find a good balance. With great power comes great responsability.
👉 Your Rx code MUST be readable
👉 Don’t use Rx in plain models
👉 Prefer async/await
👉 Your value is NOT async? Then don’t make it so!
62
Tip#7: Don’t allow optionals to rule the world
Optionals have their usage but NOT EVERYTHING is optional
👉 Enum with associated values can be very handy
👉 Enum reduces impossible behaviours (A & B can’t be nil at the same time)
👉 Don’t use optionals by default (hello GraphQL)
59

