diff --git a/YDS/Source/Component/List/YDSListItem.swift b/YDS/Source/Component/List/YDSListItem.swift index 25c1b5b2..73fa85c4 100644 --- a/YDS/Source/Component/List/YDSListItem.swift +++ b/YDS/Source/Component/List/YDSListItem.swift @@ -100,6 +100,10 @@ public class YDSListItem: UIView { super.layoutSubviews() nextIconView.isHidden = !(isShowingNextIconView ?? false) } + + public func getTitle() -> String { + return self.titleLabel.text ?? "" + } // MARK: - 외부에서 접근할 수 없는 enum diff --git a/YDS/Source/Component/List/YDSListToggleItem.swift b/YDS/Source/Component/List/YDSListToggleItem.swift index cc1522ff..42c26b34 100644 --- a/YDS/Source/Component/List/YDSListToggleItem.swift +++ b/YDS/Source/Component/List/YDSListToggleItem.swift @@ -71,6 +71,10 @@ public class YDSListToggleItem: UIView { $0.trailing.equalTo(toggle.snp.leading).offset(Dimension.Padding.gap) } } + + public func getTitle() -> String { + return self.titleLabel.text ?? "" + } // MARK: - 외부에서 접근할 수 없는 enum