diff --git a/VDSSample/Protocols/CustomRotorable.swift b/VDSSample/Protocols/CustomRotorable.swift index 111b1af..1466e60 100644 --- a/VDSSample/Protocols/CustomRotorable.swift +++ b/VDSSample/Protocols/CustomRotorable.swift @@ -65,10 +65,10 @@ public extension UIView { } return false }) - } else { - subviews.forEach { elements.append(contentsOf: $0.accessibleElements(with: trait)) } } - + + subviews.forEach { elements.append(contentsOf: $0.accessibleElements(with: trait)) } + return elements } } diff --git a/VDSSample/ViewControllers/LabelViewController.swift b/VDSSample/ViewControllers/LabelViewController.swift index adcc1d9..5f4996e 100644 --- a/VDSSample/ViewControllers/LabelViewController.swift +++ b/VDSSample/ViewControllers/LabelViewController.swift @@ -102,6 +102,8 @@ class LabelViewController: BaseViewController