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.
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.
🤔 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
🔴 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
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
🤯👠 Our SwiftUI engineers are head over heels for this change. No more need for arbitrary Groups to work around the limit! #iOSDevTips
🔂 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
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 😍
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
Xcode 15 has gotten so good! This is so much better than scrolling through a tiny list of parameter permutations. ➡️➡️➡️ #iOSDevTips
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
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