[Problem/Question]
Im trying to update the navigation title color to white. Right now it it always set to black.
[UIKit Version]
GitHub - sendbird/sendbird-uikit-ios-spm (Main Branch)
[Reproduction Steps]
struct ThreadedMessagesView: UIViewControllerRepresentable {
typealias UIViewControllerType = SBUGroupChannelListViewController
// MARK: UIViewControllerRepresentable
func makeUIViewController(context: Context) -> SendbirdUIKit.SBUGroupChannelListViewController {
self.setupUI()
let vc = SBUGroupChannelListViewController()
return vc
}
func updateUIViewController(_ uiViewController: SendbirdUIKit.SBUGroupChannelListViewController, context: Context) {
}
// MARK: Internal
private func setupUI() {
SBUTheme.set(theme: constructTheme())
}
private func constructTheme() -> SBUTheme {
let tintColor: UIColor = UIColor(named: "primaryColor")!
// Colors
SBUColorSet.onlight01 = .white
SBUColorSet.ondark01 = .white
SBUColorSet.ondark02 = .white
SBUColorSet.ondark03 = .white
SBUColorSet.ondark04 = .white
SBUColorSet.background700 = .white
SBUColorSet.background600 = .white
// Group channel list
let groupChannelListTheme = SBUGroupChannelListTheme(
statusBarStyle: .darkContent,
navigationBarTintColor: tintColor,
backgroundColor: .white
)
// Group channel list cell
let groupChannelListCell = SBUGroupChannelCellTheme(
backgroundColor: .white,
titleFont: UIFont(name: CustomFont.boldName, size: 18)!,
lastUpdatedTimeFont: UIFont(name: CustomFont.regularName, size: 13)!,
lastUpdatedTimeTextColor: .black,
messageFont: UIFont(name: CustomFont.regularName, size: 15)!
)
let componentTheme = SBUComponentTheme(
titleColor: .white,
titleFont: UIFont(name: CustomFont.boldName, size: 18)!,
barItemTintColor: .white
)
return SBUTheme(
groupChannelListTheme: groupChannelListTheme,
groupChannelCellTheme: groupChannelListCell,
componentTheme: componentTheme
)
}
}
[Frequency]
Always