skip to Main Content

UITableViewCell AutoLayout problem – Components appear outside the cell – Ios swift

The code below is where I set the constraints of the UITableViewCell. private func configureConstraints() { let agentIconImageViewConstraints = [ agentIconImageView.leadingAnchor.constraint(equalTo: contentView.leadingAnchor, constant: 10), agentIconImageView.topAnchor.constraint(equalTo: contentView.topAnchor,constant: 20), agentIconImageView.widthAnchor.constraint(equalToConstant: 64), agentIconImageView.heightAnchor.constraint(equalToConstant: 32) ] let flightTimeAndAirportsStackViewConstraints = [ flightTimeAndAirportsStackView.leadingAnchor.constraint(equalTo: agentIconImageView.trailingAnchor, constant: 10),…

VIEW QUESTION

JSONDecoder returning nil while parsing

I have the following function: func executeGet( completion: @escaping (Data?, Error?) -> Void) { AF.request("https:URL", method:.get, headers:headers).response{ response in debugPrint(response) if let error = response.error { completion(nil, error) } else if let jsonArray = response.value as? Data{ completion(jsonArray, nil) }…

VIEW QUESTION
Back To Top
Search