Sorting an array of items in Swift? KeyPathComparator, introduced in iOS 15, keeps your code simple and readable when sorting by properties on those items.

#iOSDevTips

🤔 Ever wonder how to create a variable blur effect without dipping into undocumented APIs? So have we!

Anyway. Hope you’re having a nice week so far. #iOSDevTips

In SwiftUI, Picker is fundamental when you have options to choose from:

🚥 2 to 3? Use a segmented control.

📋 4 to 6? Try a menu.

👇 More than that? Stick with the classic list using this tip from @jordanmorgan. #iOSDevTips

https://mastodon.social/@jordanmorgan/111103633181909951

🔴 Ever since we learned this, we’ve been adding SF Symbols to all of our custom notification actions. So many apps are still missing them! #iOSDevTips

https://twitter.com/natpanferova/status/1688446606285344768

Natalia Panferova on X

I recently discovered that we can add icons to action buttons in push notifications on iOS. Great way to make notifications more intuitive and visually appealing: https://t.co/J5weGbSUT2

X (formerly Twitter)

OMG!!! Run from Xcode 14.3.1 on iOS 17 devices and even 17 simulators!

The most useful developer tip I've come across in eons. This magical thing is not official yet, but it was a GOD SEND for me today. #iOSDevTips #Xcode #iOS17
https://developer.apple.com/forums/thread/730947?answerId=758061022#758061022

Missing iOS 17 device support files | Apple Developer Forums

🤯👠 Our SwiftUI engineers are head over heels for this change. No more need for arbitrary Groups to work around the limit! #iOSDevTips

https://mastodon.social/@twostraws/110678626975697398

🔂 One of our favorite tiny additions to SwiftUI this year is the new .buttonRepeatBehavior modifier, which lets you make buttons that keep performing an action as you hold them! #iOSDevTips

https://mastodon.design/@hidde/110510737675569361

Hidde van der Ploeg (@[email protected])

Attached: 1 video So nice that this is now possible with a single line of code in SwiftUI (hold to repeat the action) It even speeds up as you hold it 😍

mastodon.design

In Swift 5.9, if statements are now expressions—which means you can write them inline when declaring constants or variables! 🙌

😇 We’ll use this all the time for targeting features of new versions of iOS. #iOSDevTips

https://mastodon.social/@simonbs/110616035020244784

Xcode 15 has gotten so good! This is so much better than scrolling through a tiny list of parameter permutations. ➡️➡️➡️ #iOSDevTips

https://mastodon.cloud/@natpanferova/110524217494349563

Natalia Panferova (@[email protected])

One of my favorite improvements in Xcode 15 code completion is the ability to see all the possible parameter permutations for functions by pressing the right arrow key. Here is a very short post about this new feature: https://nilcoalescing.com/blog/ParameterPermutationsInXcode15Autocomplete/ #WWDC23 #iOSDev #Swift #SwiftUI

mastodon.cloud

If you’re as excited as we are about animated SF Symbols, this tip on how to animate them within labels is sure to come in handy! 🪄 #iOSDevTips #WWDC23

https://twitter.com/bigmtnstudio/status/1668030419298664449?s=12&t=IM88RatADhJVNUE_J9mKzA

Mark Moeykens on Twitter

“❓Can you animate an SF Symbol within a Label in #SwiftUI? 💡Yes! Just add the symbolEffect to the Label and the changing value that triggers the effect to see the animation. 👉 One day left on the #WWDC23 Sale: https://t.co/9eJwQQEeje”

Twitter