Skip to content

feat: iOS 26 types with improvements (ActionBar, Switch) + .ns-{platform}-{sdkVersion} css root scoping #10775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Aug 7, 2025

Conversation

NathanWalker
Copy link
Contributor

@NathanWalker NathanWalker commented Aug 7, 2025

PR Checklist

What is the current behavior?

Currently, only on iOS 26, the ActionBar with iosLargeTitle="true' would overlap titles when navigating back from pages.
Also, Switch was previously hardcoding dimensions which weren't needed and interfered with style changes in iOS 26.

What is the new behavior?

  • ActionBar and Switch cases are now handled.
  • Includes iOS 26 types updates.
  • Additionally, because iOS 26 brings about some specific styling considerations, new root level CSS scoping is now possible, for example:
.ns-ios-26 .action-bar {
    /**
     * Note: nativescript-theme-core auto adds background-color to actionbar 
     * doing so will cause iOS 26+ to not render titles when large title is enabled 
     * We can now scope specific styling behavior for platform sdk versions
     */
    background-color: transparent;
}

You can also do this for .ns-android-36 or .ns-visionos-2, etc.

This provides for better ability to target platform > sdk > majorVersion specific features.
For example, iOS 26 does not render titles when a background color is set on the actionbar. this allows that style to be overridden only on iOS 26 if desired.
@NathanWalker NathanWalker changed the title feat: iOS 26 improvements (ActionBar, Switch) feat: iOS 26 types with improvements (ActionBar, Switch) Aug 7, 2025
Copy link

nx-cloud bot commented Aug 7, 2025

View your CI Pipeline Execution ↗ for commit fac3b7f

Command Status Duration Result
nx test apps-automated -c=ios ✅ Succeeded 2m 9s View ↗
nx run-many --target=test --configuration=ci --... ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-08-07 18:11:39 UTC

@NathanWalker NathanWalker changed the title feat: iOS 26 types with improvements (ActionBar, Switch) feat: iOS 26 types with improvements (ActionBar, Switch) + .ns-{platform}-{sdkVersion} css root scoping Aug 7, 2025
@NathanWalker NathanWalker merged commit 9914454 into main Aug 7, 2025
6 of 7 checks passed
@NathanWalker NathanWalker deleted the feat/ios26-improvements branch August 7, 2025 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants