diff --git a/DatadogSessionReplay/SRSnapshotTests/SRFixtures/Sources/SRFixtures/ViewControllers/TabbarControllers.swift b/DatadogSessionReplay/SRSnapshotTests/SRFixtures/Sources/SRFixtures/ViewControllers/TabbarControllers.swift index caaade9074..103ac32b29 100644 --- a/DatadogSessionReplay/SRSnapshotTests/SRFixtures/Sources/SRFixtures/ViewControllers/TabbarControllers.swift +++ b/DatadogSessionReplay/SRSnapshotTests/SRFixtures/Sources/SRFixtures/ViewControllers/TabbarControllers.swift @@ -14,7 +14,7 @@ public class TabbarViewControllers: UIViewController { for tabbar in tabbars { // Select the first tabbar's item // so we can see both a selected and unselected item - tabbar.selectedItem = tabbar.items?[0] + tabbar.selectedItem = tabbar.items?.first } } }