Repository navigation
Closed
Labels
area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infopartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/ioss/triagedIssue has been reviewedt/bugSomething isn't workingversion/ios-27
Milestone
Description
Description
Hi,
i updated my mac to Xcode 27 and created a iPhone 18 with IOS 27 to test my app. In my app i have a OrientationStateTrigger to change some values depending on orientation. It works well on iOS 26 but breaks on iOS 27.
Steps to Reproduce
Run this piece of xaml on an iOS 27 simulator and look at the grids backgroundcolor. Then rotate the device to landscape. The color should be black, but it stays green.
<Grid RowSpacing="15"
x:Name="controlsGrid"
BackgroundColor="Orange">
<Button Text="Button 1"
Grid.Row="0"
Grid.Column="0"/>
<Button Text="Button 2"
Grid.Row="1"
Grid.Column="0"/>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="OrientationStates">
<VisualState x:Name="Portrait">
<VisualState.StateTriggers>
<OrientationStateTrigger Orientation="Portrait" />
</VisualState.StateTriggers>
<VisualState.Setters>
<Setter Property="BackgroundColor"
Value="Green" />
<Setter Property="RowDefinitions"
Value="40,120,*" />
<Setter Property="ColumnDefinitions"
Value="*" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="Landscape">
<VisualState.StateTriggers>
<OrientationStateTrigger Orientation="Landscape" />
</VisualState.StateTriggers>
<VisualState.Setters>
<Setter Property="BackgroundColor"
Value="Black" />
<Setter Property="RowDefinitions"
Value="40,*" />
<Setter Property="ColumnDefinitions"
Value="*,50" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</Grid>In this sample i use a grid but other layout controls are also effected.
Link to public reproduction project repository
No response
Version with bug
10.0.120
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 27
Did you find any workaround?
No response
Relevant log output
Reacted by github-actions
Metadata
Metadata
Assignees
Labels
area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infopartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/ioss/triagedIssue has been reviewedt/bugSomething isn't workingversion/ios-27
Activity
[-]OrientationStateTrigger are broken with iOS 27[/-][+]OrientationStateTriggers are broken with iOS 27[/+][iOS] Fix OrientationStateTrigger updates on iOS 27 (#39709)
[iOS] Fix OrientationStateTrigger updates on iOS 27 (#39709)