Skip to content

Commit e59528c

Browse files
committed
docs: add documentation for parsePostCard
1 parent 7088133 commit e59528c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

WordPress/Classes/ViewRelated/Blog/Blog Dashboard/Service/BlogDashboardService.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ class BlogDashboardService {
3333
}
3434

3535
private extension BlogDashboardService {
36+
/// Cards are a special case: they might not be a 1-1 relation
37+
/// If the user has draft and scheduled posts, we show two cards
38+
/// One for each. This function takes care of this
3639
func parsePostCard(_ posts: NSDictionary) -> ([DashboardCardSection], [DashboardCardModel]) {
3740
var sections: [DashboardCardSection] = []
3841
var items: [DashboardCardModel] = []

0 commit comments

Comments
 (0)