We are experiencing a different issue with this QLPreviewController which is related to the navigation bar appearance. I just filled a bug with the number FB14502545. I'll just copy paste the description here to have a quick overview on it, thank you and sorry if I spammed the thread with a different topic.
"We are developing an app that has a custom navigation bar appearance (both "standard" and "scrollEdge" are set with custom values). We have an issue on iOS 18 (reproducible on beta 4, at the moment) that breaks the custom appearance of the navigation bar, once we push a "QLPreviewController" inside a "UINavigationController". The "tintColor" and the "titleTextAttributes" properties (at least) seem to be affected, meaning that they get reset to the default value (I guess). I attached a sample project where we have a "UINavigationController" on which the root view controller has 2 buttons that push 2 different view controllers: 1 is a normal "UIViewController" and the other one is a "QLPreviewController". Whenever you push the "UIViewController" everything is ok with the navigation bar, but once you push a "QLPreviewController" the colors get reset. Please have a loc on the sample provided and let us know if this will be fixed in upcoming releases of iOS 18 or we need to implement a workaround in order to keep the custom navigation bar appearance."
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: