From 005621eccca061079f2d190bdd48e1d116ab6781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Mon, 8 Jan 2024 15:12:13 +0300 Subject: [PATCH] d --- Modules/BusX/BusUI/src/BusUI.ManyTextField.swift | 2 +- Modules/MPAKX/src/MPAK.Many.swift | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Modules/BusX/BusUI/src/BusUI.ManyTextField.swift b/Modules/BusX/BusUI/src/BusUI.ManyTextField.swift index c79b102..5f544da 100644 --- a/Modules/BusX/BusUI/src/BusUI.ManyTextField.swift +++ b/Modules/BusX/BusUI/src/BusUI.ManyTextField.swift @@ -35,7 +35,7 @@ extension BusUI { $v .removeDuplicates() .compactMap(onlyUIText) - .compactMap { v in + .compactMap { v -> Any in if let id { var d = [String: String]() d[id] = v diff --git a/Modules/MPAKX/src/MPAK.Many.swift b/Modules/MPAKX/src/MPAK.Many.swift index a2a8c4e..8b8241b 100644 --- a/Modules/MPAKX/src/MPAK.Many.swift +++ b/Modules/MPAKX/src/MPAK.Many.swift @@ -1,8 +1,14 @@ extension MPAK { public struct Many { - public var keys = Set() - public var dict = [String: T]() + public var keys: Set + public var dict: [String: T] - public init() { } + public init( + _ keys: Set = [], + _ dict: [String: T] = [:] + ) { + self.keys = keys + self.dict = dict + } } }