Post

Replies

Boosts

Views

Activity

Reply to Adapting UICollectionViewCompositionalLayout for iPhoneDuo
Hi thanks for the reply, starting with the assumption that it's simpler if the view controller hierarchy does not change based on changes in size class... as vertical space is shorter on the iPhone Duo vs a standard iPhone, I think it's reasonable to hide one of the vertical sections in the layout (where the infomation is supplementary to the main section) on the iPhone Duo, if the user want's to see it they can unfold to the large display. I suppose the other approach is to return a different layout rather than to adapt in in the sectionProvider based on sizeClass, but then it would probably require manual invalidation (sorry just thinking out loud).
Topic: UIKit SubTopic:
iPhone Duo UIKit Q&A
1d
Reply to UIKit Container View Controllers and iPhone Duo
Hi, I don't set a primary column on the UISplitViewController, it's managed by the UITabControllerSidebar., the supplementary column provides some insights about user activity (insights). Here's the setup code let splitViewController = UISplitViewController(style: .tripleColumn) // Note. shows supplementary + secondary, hides primary splitViewController.preferredDisplayMode = .automatic let insightColumnVC = InsightColumnController(traitCollection: splitViewController.traitCollection) splitViewController.setViewController(insightColumnVC, for: .supplementary) splitViewController.preferredSupplementaryColumnWidth = 50.0 splitViewController.displayModeButtonVisibility = .automatic let listColumnVC = ListController(traitCollection: splitViewController.traitCollection) // Note: splitViewController will wrap it in a UINavigationController splitViewController.setViewController(listColumnVC, for: .secondary) return splitViewController }
Topic: UIKit SubTopic:
iPhone Duo UIKit Q&A
1d
Reply to AttributedString (without NS prefix) and Genmoji
The API is this one https://developer.apple.com/documentation/foundation/nsattributedstring/key/4395176-adaptiveimageglyph I had a second look and I saw that I can separate my use of AttributedString encoding/decoding to/from markdown data from where I would employ Genmoji and NSAttributedString so it's to close the ticket. Sorry!
Topic: UI Frameworks SubTopic: General Tags:
Jul ’24
Reply to Adapting UICollectionViewCompositionalLayout for iPhoneDuo
Hi thanks for the reply, starting with the assumption that it's simpler if the view controller hierarchy does not change based on changes in size class... as vertical space is shorter on the iPhone Duo vs a standard iPhone, I think it's reasonable to hide one of the vertical sections in the layout (where the infomation is supplementary to the main section) on the iPhone Duo, if the user want's to see it they can unfold to the large display. I suppose the other approach is to return a different layout rather than to adapt in in the sectionProvider based on sizeClass, but then it would probably require manual invalidation (sorry just thinking out loud).
Topic: UIKit SubTopic:
iPhone Duo UIKit Q&A
Replies
Boosts
Views
Activity
1d
Reply to Recommended source of truth for adapting UIKit layouts on iPhone Duo
UINavigationSplitView? I guess that should be UISplitViewController?
Topic: UIKit SubTopic:
iPhone Duo UIKit Q&A
Replies
Boosts
Views
Activity
1d
Reply to UIKit Container View Controllers and iPhone Duo
Ps. I can share screenshots confidentially, no problem.
Topic: UIKit SubTopic:
iPhone Duo UIKit Q&A
Replies
Boosts
Views
Activity
1d
Reply to UIKit Container View Controllers and iPhone Duo
Hi, I don't set a primary column on the UISplitViewController, it's managed by the UITabControllerSidebar., the supplementary column provides some insights about user activity (insights). Here's the setup code let splitViewController = UISplitViewController(style: .tripleColumn) // Note. shows supplementary + secondary, hides primary splitViewController.preferredDisplayMode = .automatic let insightColumnVC = InsightColumnController(traitCollection: splitViewController.traitCollection) splitViewController.setViewController(insightColumnVC, for: .supplementary) splitViewController.preferredSupplementaryColumnWidth = 50.0 splitViewController.displayModeButtonVisibility = .automatic let listColumnVC = ListController(traitCollection: splitViewController.traitCollection) // Note: splitViewController will wrap it in a UINavigationController splitViewController.setViewController(listColumnVC, for: .secondary) return splitViewController }
Topic: UIKit SubTopic:
iPhone Duo UIKit Q&A
Replies
Boosts
Views
Activity
1d
Reply to Supplying custom menu elements to a UITextView's edit menu
Thanks! I'll file the FB and post it here as soon as I get a chance.
Topic: UIKit SubTopic:
UIKit Q&A
Replies
Boosts
Views
Activity
Jun ’26
Reply to UITableViewDiffableDataSource apply snapshot crashes on iOS 17
Why not call the async variant of apply?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to API to get AVSpeechSynthesisVoice that are available to download (via Settings.app) but not yet downloaded to a device
Ah ok, I found it.
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to AttributedString (without NS prefix) and Genmoji
The API is this one https://developer.apple.com/documentation/foundation/nsattributedstring/key/4395176-adaptiveimageglyph I had a second look and I saw that I can separate my use of AttributedString encoding/decoding to/from markdown data from where I would employ Genmoji and NSAttributedString so it's to close the ticket. Sorry!
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to What’s New with Apple Developer Forums
Could you give some guidelines on when to use the forums and when to use Feedback Assistant. For forum posts I'm interested in I see replies like "it is best to share your thoughts about new features and feature requests via http://feedbackassistant.apple.com/ where the relevant teams would be able to evaluate such requests."
Replies
Boosts
Views
Activity
Jun ’24
Reply to Make the new Translation API available beyond SwiftUI
It would be great if there was support for UIKit. SwiftUI still lacks a lot of the customisation points necessary to get a native app feel in advanced use cases involving text.
Replies
Boosts
Views
Activity
Jun ’24
Reply to Is it possible to convert a model trained with CRFSuite to NLModel / CoreML?
Thanks a lot for your help much appreciated. I managed to compile it as a framework. For the device a few symbols (used to init/load models) in libcrfsuite are not a one to one match with the CRFSuite header, so it's a little bit too much of a black box / rabbit hole for me to spend more time on at the moment.
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to Is it possible to convert a model trained with CRFSuite to NLModel / CoreML?
@Macho Man Randy Savage I didn't manage to get it running so far, I suspect that libcrfsuite is for private Apple only use. So back to getting it to compile, I need to run it on iOS on the device, did you managed to get that far? I tried to call/wrap via Swift but I suspect it's better to start with Objective-C.
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to Is it possible to convert a model trained with CRFSuite to NLModel / CoreML?
Thanks a lot for the information! I didn't quite finish wrapping the C code so I will take a look at libcrfsuite, well done I would not have thought to look for that. I was looking to tokenize thai syllables and in Apple's frameworks word is the smallest unit so there's no way, not even with a Gazetteer 😅
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to Is it possible to convert a model trained with CRFSuite to NLModel / CoreML?
Hello, I wanted to do the same, did you have a go at compiling CRFSuite in Xcode?
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’24