Post

Replies

Boosts

Views

Activity

Reply to Are WatchOS storyboards forbidden now ?
@Claude31, I'm also curious what you've encountered. I have yet to convert my watch apps over to SwiftUI but plan on doing so due to some WatchKit defects that surfaced the last two years that are quite annoying--though I just checked watchOS 9 beta 2 and they appear to be fixed. In any case, if you post your feedbacks here with a quick description and they apply to my apps too, I'd be happy to write matching ones up on my side and reference yours as duplicate to help upvote what you found. For other devs finding their way to this post, here are some defects that I've filed against watchOS 7 / 8: FB9972047 - WatchKit: awakeWithContext not invoked on page 2 and 3 in multipage layout until after swiping [watchOS 8] In short, three "page" layout in WatchKit, the second and third pages don't receive an init until the user swipes. Previously, in the init of the second interface controller, I was having it become the active page upon initialization. I can't do this anymore so programatic navigation is totally busted. FB8965949 - WKInterfacePicker text baseline clips with y and g [watchOS 7.2/8] In short, I added a picker that has "kayaking" and "canoeing" in my watch app. The letters are being clipped when using the WKInterfacePicker control, but when I rewrote in SwiftUI this was not the case.
Jul ’22
Reply to SwiftUI .searchable's new "scope" feature behavior
Update: Xcode 14 beta 3 deprecated the above code using scope within searchable and now there is a new modifier .searchScopes. The behaviors described in my feedbacks still apply. I'd expect the scopes to be visible before typing in the search and the selected scope to respect the binding. These are still open issues. A visibility param now makes a ton of sense. The new API is here: https://developer.apple.com/documentation/swiftui/anyview/searchscopes(_:scopes:)?changes=latest_minor
Jul ’22
Reply to Is cryptocurrencies in-app purchases allowed in the App Store?
Check out the App Store Review Guidelines: https://developer.apple.com/app-store/review/guidelines/ Specifically sections: 3.1.1 In-App Purchase 3.1.5 Cryptocurrencies 5.3 Gaming, Gambling, and Lotteries I think this is the line you're looking for from 5.3.3 that states "Apps may not use in-app purchase to purchase credit or currency for use in conjunction with real money gaming of any kind."
Jun ’22
Reply to Embed SwiftUI View in UITabBarController
There are still a handful of things you can do in UIKit for UITabViewController that you can't in SwiftUI (even with iOS 16). If you want to mix and match, you can use a UIHostingController and shove your SwiftUI view inside one then add the hosting controller as a child of the UITabViewController.
Jun ’22
Reply to iOS 16 Live Activities Lock Screen widget
I asked the same thing during WWDC22 Labs and the API behavior and design is pretty much on lock down. Taking hints from the system and the use cases that Apple has demonstrated, a package delivery, a sports event score change, a ride share service, these are all things that seem to be remote server updated. Meaning the phone can't do them on their own. Maybe you could do a conference planner/scheduler Live Activity that is all locally cached, but the use cases were telling to me. I have to imagine it will look like WidgetKit but have some aspect of content-available push that maybe goes right to your widget / live activity extension. Or to your app and then reload timeline if truly like widget kit. I'd also bet that just like widgets on home and Lock Screen, Live Activities will be 100% SwiftUI for visuals. So my vote goes to learning "systemMedium" widget family, and SwiftUI. If you make a systemMedium Home Screen widget visually, hopefully it would be reusable for your live activity view. Out of curiosity, what is your use case? How often would you want to refresh the live activity? This was also something I talked about in my lab, trying to get info on refresh policies--nothing :) Guess we will have to wait. I was encourage to #filefeedback on my ideas for Live Activities so Apple can see what we want to build.
Jun ’22
Reply to How to open specific app clip settings in Swift?
@JJY, did you #filefeedback for this? The documentation for the openSettingsURLString describes "app" so my guess is that the behavior is expected. That having been said, I agree it would be nice to direct the user to correct permission issues if they want to access a feature they previously denied authorization for. I just filed mine requesting app clip settings url: FB10346783
Jun ’22
Reply to Retrieving a List of Known BLE Peripherals
There was a developer video a few years back that described the behavior of attribute caching. I want to say that attributes are cached if your devices is paired/bonded. Also, for things to work right, your peripheral needs to support the services changed service and characteristic. Attribute caching is a funny business. When ever coworkers ask me about it on iOS / Android I refer them to an article published by Punch Through. Search for "Punch through attribute caching" on the web and it should be one of your first hits. The forums tool said I couldn't post it here directly for some reason.
Jun ’22
Reply to Driving NavigationSplitView with something other than List?
@Jaanus, Have you tried composing your NavigationSplitView with a NavigationStack as your detail? You can then control push / pop behavior with a bound NavigationPath type. You mentioned your button doesn't push anything on the navigation stack, but I don't see a NavigationStack in your view's body. All of my views are List driven but worth a shot. If you haven't already seen this video, check it out: https://developer.apple.com/wwdc22/10054
Jun ’22
Reply to SwiftUI toolbar text size changes on appear
@MintChoco, have you made a feedback for this? From user perspective it is undesired behavior if they have small font. I think the system is trying to honor that but then realizes "I'm in a nav bar item, I need standard size". Seems like a defect to me. Post your Feedback # in here and when I get around to capturing one I'll do the same and we can reference each other.
Apr ’22