[Framework] Show top words for filtered items in the Feed List (#12)

This PR contains the work done to show the top 3 words belonging to the filtered reviews  in the `FeedListViewController` view controller.

Reviewed-on: rock-n-code/app-reviews#12
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
This commit was merged in pull request #12.
This commit is contained in:
2024-03-21 01:13:12 +00:00
committed by javier
parent eac34c61c1
commit d00cfceb32
10 changed files with 339 additions and 43 deletions
@@ -0,0 +1,23 @@
//
// TopWord+DTOs.swift
// ReviewsFeed
//
// Created by Javier Cicchelli on 21/03/2024.
// Copyright © 2024 Röck+Cöde. All rights reserved.
//
import Foundation
import ReviewsFilterKit
extension TopWord {
// MARK: Initialisers
init(_ dto: WordCount) {
self = .init(
id: UUID().uuidString,
term: dto.word.term,
count: dto.count
)
}
}