Skip to content

Commit

Permalink
[#136] ListItem의 title을 가져올 수 있도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
chongin12 committed Jun 18, 2022
1 parent 52724f5 commit 72bae6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions YDS/Source/Component/List/YDSListItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ public class YDSListItem: UIView {
super.layoutSubviews()
nextIconView.isHidden = !(isShowingNextIconView ?? false)
}

public func getTitle() -> String {
return self.titleLabel.text ?? ""
}

// MARK: - 외부에서 접근할 수 없는 enum

Expand Down
4 changes: 4 additions & 0 deletions YDS/Source/Component/List/YDSListToggleItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 72bae6f

Please sign in to comment.