@@ -29,12 +29,15 @@ open class TopView: UIView {
2929 button. titleLabel? . font = self . configuration. flashButton
3030 button. addTarget ( self , action: #selector( flashButtonDidPress ( _: ) ) , for: . touchUpInside)
3131 button. contentHorizontalAlignment = . left
32+ button. accessibilityLabel = " Flash mode is auto "
3233
3334 return button
3435 } ( )
3536
3637 open lazy var rotateCamera : UIButton = { [ unowned self] in
3738 let button = UIButton ( )
39+ button. accessibilityLabel = " "
40+ button. accessibilityHint = " Double-tap to rotate camera "
3841 button. setImage ( AssetManager . getImage ( " cameraIcon " ) , for: UIControlState ( ) )
3942 button. addTarget ( self , action: #selector( rotateCameraButtonDidPress ( _: ) ) , for: . touchUpInside)
4043 button. imageView? . contentMode = . center
@@ -94,6 +97,7 @@ open class TopView: UIView {
9497 case 1 :
9598 button. setTitleColor ( UIColor ( red: 0.98 , green: 0.98 , blue: 0.45 , alpha: 1 ) , for: UIControlState ( ) )
9699 button. setTitleColor ( UIColor ( red: 0.52 , green: 0.52 , blue: 0.24 , alpha: 1 ) , for: . highlighted)
100+
97101 default :
98102 button. setTitleColor ( UIColor . white, for: UIControlState ( ) )
99103 button. setTitleColor ( UIColor . white, for: . highlighted)
@@ -103,6 +107,7 @@ open class TopView: UIView {
103107
104108 button. setImage ( AssetManager . getImage ( newTitle) , for: UIControlState ( ) )
105109 button. setTitle ( newTitle, for: UIControlState ( ) )
110+ button. accessibilityLabel = " Flash mode is \( newTitle) "
106111
107112 delegate? . flashButtonDidPress ( newTitle)
108113 }
0 commit comments