Skip to content

Commit

Permalink
Add accessibilityIdentifier to switch
Browse files Browse the repository at this point in the history
for preparing screenshots
  • Loading branch information
EddyLB committed Nov 22, 2020
1 parent 79ad346 commit 31525dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions piwigo/Settings/SettingsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ class SettingsViewController: UIViewController, UITableViewDataSource, UITableVi

// Switch status
cell.cellSwitch.setOn(Model.sharedInstance().displayImageTitles, animated: true)
cell.cellSwitch.accessibilityIdentifier = "switchImageTitles"
cell.cellSwitchBlock = { switchState in
Model.sharedInstance().displayImageTitles = switchState
Model.sharedInstance().saveToDisk()
Expand Down

0 comments on commit 31525dd

Please sign in to comment.