Retours sur la structure du code

This commit is contained in:
2023-12-08 17:37:21 +01:00
committed by Loris Perret
parent 5427ff6786
commit dfe31b5c80
13 changed files with 177 additions and 143 deletions

View File

@@ -11,10 +11,14 @@ class AnalyticsCategory {
let id: String // OnBoarding
var definitions = [AnalyticsDefinition]()
// MARK: - Init
init(id: String) {
self.id = id
}
// MARK: - Methods
func hasOneOrMoreMatchingTags(tags: [String]) -> Bool {
let allTags = definitions.flatMap { $0.tags }
let allTagsSet = Set(allTags)