Михаил Капелько 10 months ago
parent
commit
005621eccc
2 changed files with 10 additions and 4 deletions
  1. +1
    -1
      Modules/BusX/BusUI/src/BusUI.ManyTextField.swift
  2. +9
    -3
      Modules/MPAKX/src/MPAK.Many.swift

+ 1
- 1
Modules/BusX/BusUI/src/BusUI.ManyTextField.swift View File

@@ -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


+ 9
- 3
Modules/MPAKX/src/MPAK.Many.swift View File

@@ -1,8 +1,14 @@
extension MPAK {
public struct Many<T> {
public var keys = Set<String>()
public var dict = [String: T]()
public var keys: Set<String>
public var dict: [String: T]

public init() { }
public init(
_ keys: Set<String> = [],
_ dict: [String: T] = [:]
) {
self.keys = keys
self.dict = dict
}
}
}

Loading…
Cancel
Save