Sparrow Code for iOS developers
755 subscribers
189 photos
26 videos
123 links
I write for iOS developers about Xcode, Swift and SwiftUI development. Group iOS developers to discuss @sparrowcodechat_en. For questions @ivanvorobei
Download Telegram
Sparrow Code for iOS developers
Presented the new iPads, more powerful, expensive For you as developers, it's useful to know just about the new Pencil Pro — it will support gestures. There is no documentation yet
The docs here. In UIKit, gestures work through perform methods, in SwiftUI it work via a modifier:


MyView()
.onPencilDoubleTap { value in
// ...
}


📖 Here are docs to the for squeezes and double-tap gestures. It has been working since beta 17.5
Please open Telegram to view this post
VIEW IN TELEGRAM
🙏7🔥3👍222
Apple has so much to offer that they've created roadmaps. Every category is in the screenshot

Choose the one you need, and inside, it will guide you systematically through docs and video tutorials in the right order

They've called it 🗺 Pathways
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥14👍6🙏54
You know how to use 💡 TipKit in SwiftUI, but here examples for UIKit as well

For example, you know about special collection cell for tip-view?

🐤 Check tutorial https://sparrowcode.io/en/tutorials/tipkit
Please open Telegram to view this post
VIEW IN TELEGRAM
👍7🔥422🙏1
In May, Apple released a report about app rejections and removals. The full report is not yet available, but a few stuff here. All data related to 2023

✅ The review team consists of over 500 experts. This is the first time Apple has mentioned it. They also mention automated review

👨‍💻 Closed 4x fewer dev accounts, total 100k. A year ago, they cleaned up apps and accounts, removing a quarter of all applications at that time

🛑 250k apps were rejected due to 4.x (note: Design Spam). Same as year before
Please open Telegram to view this post
VIEW IN TELEGRAM
👍9🔥541
🛑 The chance of restoring an app after removal from the App Store is 1.7%. The chance of restoring a developer account is 2.7%

🐤 It seems that Apple has become stricter, but the number of account removal has decreased by 4 times

These data are from the App Store Transparency Report for 2023. Follow the link for more statistics for iOS-publishers
Please open Telegram to view this post
VIEW IN TELEGRAM
👍106🙏42🔥1
📖 In the App Review Guides, paragraph 4.6 was removed

There it was forbidden to use icons for dynamic updates. For example, as in 🕐 Clock and Calendar
Please open Telegram to view this post
VIEW IN TELEGRAM
👍4🔥4🙏3
Let's start reviewing the WWDC sessions. I'll check the most important things for 3-4 days

🔨 You can install a beta next to the release Xcode. No need macOS beta for it
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥7👍4🙏4
This media is not supported in your browser
VIEW IN TELEGRAM
🔨 Here are the AI features for Xcode. The first one is Predictive Input

Special model trained on the SDK. Works locally, but only on 💾 Sequoia
Please open Telegram to view this post
VIEW IN TELEGRAM
🙏9👍7🔥4
This media is not supported in your browser
VIEW IN TELEGRAM
🔨 The second one is Swift Assist, think of it as an integrated ChatGPT

Apple positions the Assist as a tutorial for new API (you can learn the code by example) and for prototypes

🆘 If you're a beginner: don't worry — this thing won't replace you. It doesn't know how to isolate problems and solve them
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥13👍5🙏32
🔨 Now you can see what exactly holds the app startup

Window → Organaiser → Launches

Data is taken from 👨‍💻 App Store Connect — it is not a local tool, but analytics
Please open Telegram to view this post
VIEW IN TELEGRAM
👍85🔥4🙏3
🔨 New visual to view call stack. So convenient that it's hard to understand why they didn't do it earlier
Please open Telegram to view this post
VIEW IN TELEGRAM
👍8🔥54🙏3
Added a library with UI elements for iOS 💾 to the resources page

Inside there are iPad examples with new navigation and a new Document-based template. Otherwise everything is familiar

Only for 💎sketch, not for Figma yet
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥8👍4🙏2
If you have installed the beta 💾 the release Xcode will not work

But there is a trick. In the Terminal, type:

/Applications/Xcode.app/Contents/MacOS/Xcode;


Do not close the Terminal. The icon will be crossed out, but everything works
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥6🙏5👍22
The strangest innovation is Tinting Icons

For dark theme you give a colored icon, and the background will be system. For a tinted theme you give a B&W icon. You can play with transparency of elements

🖼 In Xcode Beta you can already add icons, but for now it always shows the default one
Please open Telegram to view this post
VIEW IN TELEGRAM
👍63🙏2🔥11
💳 More ready-made paywalls — SubscriptionStoreView has a new modifier with styles

Note, in the screenshot there are two subscription groups in the segment. This is also new features ready to use
Please open Telegram to view this post
VIEW IN TELEGRAM
🙏5🔥3👍11
💳 StoreKit deprecated

✅ Don't worry - the apps will still work. Just without the new features (win-back offers, more about it later)
Please open Telegram to view this post
VIEW IN TELEGRAM
👍3🙏3🔥2
🎛 Live Activity available on the watchOS. If you've worked with LA before, nothing has changed. If not, there is a tutorial

UI for watch can be done through env check:

@Environment({\.activityFamily) var activityFamily


Enum has two types, .small and .medium. Informatively named 🙆
Please open Telegram to view this post
VIEW IN TELEGRAM
👍8🔥42🙏1
This media is not supported in your browser
VIEW IN TELEGRAM
🥽 Multiview has been added for Vision Pro AVPlayer

Ready-to use via AVPlayerViewController, just a couple of lines of code
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥73👍2🙏22
Media is too big
VIEW IN TELEGRAM
💾 Played with the new navigation on iPad

Sidebar is now a variant of the TabView display. Used to call the .tabItem modifier, but now it's like this:


Tab("Item", systemImage: "play") {
// Content
}


The customization ready to use and is saved in App Storage. The code is universal - for iPhone and Vision Pro it will show tab-bar, for Mac side-bar
Please open Telegram to view this post
VIEW IN TELEGRAM
👍7🔥5🙏111
You can now add your own controls to the control center

🔖 Works via App Intents

Syntax is similar to Intents, but you configure via ControlWidgetConfiguration
Please open Telegram to view this post
VIEW IN TELEGRAM
👍10🔥2🙏21