| | |
| | | |
| | | var dicts = Dictionary<String,Any>(){ |
| | | didSet{ |
| | | view_VStack.removeArrangedSubviews() |
| | | view_VStack.qmui_removeAllSubviews() |
| | | let results = dicts.keys.sorted().filter({$0 != "1_title" && $0 != "2_address" && $0 != "7_danger" && $0 != "8_weight"}) |
| | | |
| | | if let title = dicts["1_title"] as? String{ |
| | |
| | | |
| | | for key in results { |
| | | let v1 = createContentLabel(.left, text: key.components(separatedBy: "_").last!) |
| | | let v2 = createContentLabel(.right, text: dicts[key] as! String) |
| | | let v2 = createContentLabel(.right, text: "\(dicts[key] ?? "")") |
| | | let hStackView = UIStackView(arrangedSubviews: [v1,v2], axis: .horizontal) |
| | | view_VStack.addArrangedSubview(hStackView) |
| | | } |