home.social

#iosdevtips — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #iosdevtips, aggregated by home.social.

fetched live
  1. 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

  2. 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

  3. 🤔 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

  4. 🤔 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

  5. 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

    mastodon.social/@jordanmorgan/

  6. 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

    mastodon.social/@jordanmorgan/

  7. 🔴 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

    twitter.com/natpanferova/statu

  8. 🔴 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

    twitter.com/natpanferova/statu

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

    mastodon.social/@twostraws/110

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

    mastodon.social/@twostraws/110

  11. 🔂 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

    mastodon.design/@hidde/1105107

  12. 🔂 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

    mastodon.design/@hidde/1105107

  13. 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

    mastodon.social/@simonbs/11061

  14. 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

    mastodon.social/@simonbs/11061

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

    mastodon.cloud/@natpanferova/1

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

    mastodon.cloud/@natpanferova/1

  17. 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

    twitter.com/bigmtnstudio/statu

  18. 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

    twitter.com/bigmtnstudio/statu

  19. 🧠 The new Observable type greatly simplifies data flow and improves performance in SwiftUI, and our engineers are so excited to use it! #WWDC23

    However, there’s a critical gotcha that Apple mentions briefly in their docs—if you use SwiftUI, you’ll NEED to know this. #iOSDevTips

    developer.apple.com/documentat

  20. 🧠 The new Observable type greatly simplifies data flow and improves performance in SwiftUI, and our engineers are so excited to use it! #WWDC23

    However, there’s a critical gotcha that Apple mentions briefly in their docs—if you use SwiftUI, you’ll NEED to know this. #iOSDevTips

    developer.apple.com/documentat

  21. 🚦 With #WWDC23 right around the corner, here’s a helpful blog post from @Mecid about how to use APIs only on operating systems where they’re available! #iOSDevTips

    swiftwithmajid.com/2023/05/17/

  22. 🚦 With #WWDC23 right around the corner, here’s a helpful blog post from @Mecid about how to use APIs only on operating systems where they’re available! #iOSDevTips

    swiftwithmajid.com/2023/05/17/

  23. 🗺️ Our engineers have stumbled upon this a few times by accident—we didn’t know what was going on until we saw this tweet!

    Very cool feature (when done intentionally 😂) #iOSDevTips

    via: twitter.com/Lee_Kah_Seng/statu

  24. 🗺️ Our engineers have stumbled upon this a few times by accident—we didn’t know what was going on until we saw this tweet!

    Very cool feature (when done intentionally 😂) #iOSDevTips

    via: twitter.com/Lee_Kah_Seng/statu

  25. If you’ve ever wanted to use a subtitle in a menu in SwiftUI but didn’t know how, @TwigH figured it out. Just include a second text view in your label parameter, and voila! ✨ #iOSDevTips

  26. If you’ve ever wanted to use a subtitle in a menu in SwiftUI but didn’t know how, @TwigH figured it out. Just include a second text view in your label parameter, and voila! ✨ #iOSDevTips

  27. 🤞 Hoping the new backDeployed() API means we’ll be seeing backward-compatible SwiftUI from Apple during #WWDC23 so we can keep shipping great stuff to folks on older versions of iOS! #iOSDevTips

    via:
    twitter.com/sarunw/status/1626

  28. 🤞 Hoping the new backDeployed() API means we’ll be seeing backward-compatible SwiftUI from Apple during #WWDC23 so we can keep shipping great stuff to folks on older versions of iOS! #iOSDevTips

    via:
    twitter.com/sarunw/status/1626

  29. TIL: To ensure a consistent spacing between the elements in your `UICollectionView`, you must set both `minimumInteritemSpacing` and `minimumLineSpacing` to the same value when using `UICollectionViewFlowLayout`.

    THX 😅

  30. Another GitHub tip:

    If you find yourself always behind on code review (we’ve been there 😅), set up a Focus Mode for work & add the GitHub pull request widget to your home screen—like
    @matthewbischoff does! #iOSDevTips

  31. Another GitHub tip:

    If you find yourself always behind on code review (we’ve been there 😅), set up a Focus Mode for work & add the GitHub pull request widget to your home screen—like
    @matthewbischoff does! #iOSDevTips

  32. 🚂 Our engineers on larger projects have been waiting for this GitHub feature for a long time. Can't wait to queue up some PRs! #iOSDevTips

    github.blog/changelog/2023-02-

  33. 🚂 Our engineers on larger projects have been waiting for this GitHub feature for a long time. Can't wait to queue up some PRs! #iOSDevTips

    github.blog/changelog/2023-02-

  34. We’re back with more #iOSDevTips 👋

    If you’re localizing your app & not sure how to find every string you need to localize, edit your scheme and check “Show non-localized strings” in Run → Options. Then, look for all-caps strings.

    via @kharrison
    useyourloaf.com/blog/finding-n

  35. We’re back with more #iOSDevTips 👋

    If you’re localizing your app & not sure how to find every string you need to localize, edit your scheme and check “Show non-localized strings” in Run → Options. Then, look for all-caps strings.

    via @kharrison
    useyourloaf.com/blog/finding-n

  36. ✨ Wanna add some juicy animations to your iOS app but don’t have time to build them from scratch? @[email protected] built the Pow library just for you! (And it’s only $99) #iOSDevTips

    movingparts.io/pow

  37. ✨ Wanna add some juicy animations to your iOS app but don’t have time to build them from scratch? @[email protected] built the Pow library just for you! (And it’s only $99) #iOSDevTips

    movingparts.io/pow

  38. One of @[email protected]’ favorite Xcode 14 features is the Product → Clear All Issues menu item 🧹

    It’s super handy when working on large codebases that sometimes generate spurious warnings or errors during the build process #iOSDevTips

  39. One of @[email protected]’ favorite Xcode 14 features is the Product → Clear All Issues menu item 🧹

    It’s super handy when working on large codebases that sometimes generate spurious warnings or errors during the build process #iOSDevTips

  40. 🤯 While we don’t need to do this often, it’s super handy to have an idiomatic way to iterate over relationships. Thanks for the #iOSDevTips Kyle!

    twitter.com/kyleve/status/1575

  41. 🤯 While we don’t need to do this often, it’s super handy to have an idiomatic way to iterate over relationships. Thanks for the #iOSDevTips Kyle!

    twitter.com/kyleve/status/1575

  42. If you’re frequently submitting builds to App Store Connect, this one weird trick will save you time on every submission! ⏳😅 #iOSDevTips

    twitter.com/kslazinski/status/

  43. If you’re frequently submitting builds to App Store Connect, this one weird trick will save you time on every submission! ⏳😅 #iOSDevTips

    twitter.com/kslazinski/status/

  44. 🪫 If the Xcode 14 beta is draining your laptop battery, our friend @[email protected] put together a blog post with a workaround! It's been a lifesaver. #iOSDevTips

    blog.nihongo-app.com/stop-xcod

  45. 🪫 If the Xcode 14 beta is draining your laptop battery, our friend @[email protected] put together a blog post with a workaround! It's been a lifesaver. #iOSDevTips

    blog.nihongo-app.com/stop-xcod

  46. If you’re not already using an 8pt grid in your designs, @[email protected] makes it super easy to get into the habit with a configurable nudge shortcut. Set it up in the Canvas Preferences, under “Nudging” 👇 #iOSDevTips

  47. If you’re not already using an 8pt grid in your designs, @[email protected] makes it super easy to get into the habit with a configurable nudge shortcut. Set it up in the Canvas Preferences, under “Nudging” 👇 #iOSDevTips

  48. 🪧 Our designer was super excited that UIMenu gained size options for elements in iOS 16!

    Specify them with the preferredElementSize API:
    developer.apple.com/documentat

    #iOSDevTips

  49. 🪧 Our designer was super excited that UIMenu gained size options for elements in iOS 16!

    Specify them with the preferredElementSize API:
    developer.apple.com/documentat

    #iOSDevTips

  50. 🔎 This is a great #iOSDevTips from @[email protected] ! We’re already using this new feature in iOS 16 to find and fix hangs in our apps.

    twitter.com/qzervaas/status/15

  51. 🔎 This is a great #iOSDevTips from @[email protected] ! We’re already using this new feature in iOS 16 to find and fix hangs in our apps.

    twitter.com/qzervaas/status/15

  52. If you’re ever writing UI tests and you want to see a textual representation of the UI tree, run print(XCUIApplication().debugDescription) 🤖

    Thanks for the tip @[email protected]! #iOSDevTips