Skip to content

Conversation

laevandus
Copy link
Contributor

@laevandus laevandus commented Sep 11, 2025

🔗 Issue Links

Related: IOS-1118

🎯 Goal

Tinting did work when trying to use different tint for navigation bar and the main content

📝 Summary

  • Fix tinting for navigation bar which requires using NavigationContainerView and .toolbarThemed()
  • Add toolbarThemed(content:) for customised views requiring themed navigation bar
  • NOTE! This only works when both navigationBarTintColor and tintColor are customised

🛠 Implementation

🎨 Showcase

Before After
img img

🧪 Manual Testing Notes

AppDelegate.swift

        var colors = ColorPalette()
        colors.navigationBarTintColor = .purple
        colors.navigationBarTitle = .brown
        colors.navigationBarSubtitle = .cyan
        colors.navigationBarBackground = .yellow
        colors.tintColor = .red
        let appearance = Appearance(colors: colors)
        streamChat = StreamChat(chatClient: chatClient, appearance: appearance, utils: utils)

☑️ Contributor Checklist

  • I have signed the Stream CLA (required)
  • This change should be manually QAed
  • Changelog is updated with client-facing changes
  • Changelog is updated with new localization keys
  • New code is covered by unit tests
  • Documentation has been updated in the docs-content repo

@laevandus laevandus requested a review from a team as a code owner September 11, 2025 10:53
Copy link

github-actions bot commented Sep 11, 2025

Public Interface

🚀 No changes affecting the public interface.

@laevandus laevandus force-pushed the fix/navigation-bar-custom-tint branch from d0d816b to d92b3e5 Compare September 11, 2025 10:57
@Stream-SDK-Bot
Copy link
Collaborator

Stream-SDK-Bot commented Sep 11, 2025

SDK Size

title develop branch diff status
StreamChatSwiftUI 9.35 MB 9.38 MB +37 KB 🟢

Copy link
Member

@nuno-vieira nuno-vieira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! ✅

@laevandus laevandus enabled auto-merge (squash) September 11, 2025 13:48
Copy link

@laevandus laevandus merged commit 76d8a73 into develop Sep 11, 2025
11 checks passed
@laevandus laevandus deleted the fix/navigation-bar-custom-tint branch September 11, 2025 15:38
@Stream-SDK-Bot Stream-SDK-Bot mentioned this pull request Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants