Post

Replies

Boosts

Views

Activity

Mac Catalyst: TableView row always auto selected while popping back to the parent list in side bar
I'm building a Catalyst macOS app but got this bug. Basically, I cannot go back to the top level list while tapping the back button in the side bar. The cell row got automatically selected while going back. The source code of this kind of split view controller looks like: swift class RootSplitVC: UISplitViewController { override func viewDidLoad() { super.viewDidLoad() let viewController = SideBarListViewController() primaryBackgroundStyle = .sidebar preferredDisplayMode = .oneBesideSecondary let listNavigationVC = UINavigationController(rootViewController: viewController) viewControllers = [ listNavigationVC, // could only be reproduced on Big Sur with Optimized for Mac DetailViewController(), // this does not matter ] Full source code: https://github.com/imWildCat/CatalystTableViewAutoSelectedOnPopDemo
0
0
677
Mar ’21
SwiftUI Preview: Updating took more than 5 seconds for non-main target (framework target)
While selecting a framework rather than the executable as the active scheme, SwiftUI preview cannot use: Updating took more than 5 seconds. However, while selecting the main app target, it can work perfectly. Repro steps: git clone https://github.com/imWildCat/NonExecutableTargetCannotUseSwiftUIPreviewDemo cd NonExecutableTargetCannotUseSwiftUIPreviewDemo xed NonExecutableTargetCannotUseSwiftUIPreviewDemo.xcworkspace Select the “SharedUI” target as the active scheme Open the WebImage.swift source file Run the SwiftUI preview Please note that, if you use the main app target (executable rather than the frame), it can be previewed.
3
0
1.2k
May ’21