@Allen-Chen I have the same problem as you, almost the same code as the example you have given. Everything worked fine before iOS 18, but now I am running into the same error when I am updating the number of visible tabs:
'NSInternalInconsistencyException', reason: 'Attempting to select a view controller that isn't a child! (null)'
Did you ever figure out how to fix this problem? Thanks
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: