From 4820dc66cd7407a56ce41441bf8895001a618fb7 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Sat, 26 Aug 2023 10:50:35 -0500 Subject: [PATCH] updated samplelabel Signed-off-by: Matt Bruce --- VDSSample/Protocols/CustomRotorable.swift | 6 +++--- VDSSample/ViewControllers/LabelViewController.swift | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) 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