現在、スタック ビューに後で追加するビューの 1 つの高さと幅の制約を次のように設定しています (参考までに、productsTable は UITableView です)。
productsTable.heightAnchor.constraintEqualToConstant(tableHeight).active = true
productsTable.widthAnchor.constraintEqualToConstant(stackWidth).active = true
stackView.insertArrangedSubview(productsTable, atIndex: productsTableIndex)
後で、ViewWillAppear で、productsTable の高さを次のように変更します。
productsTable.heightAnchor.constraintEqualToConstant(newHeight).active = true.
それにもかかわらず、ViewWillAppear の制約を (変更/更新) した後も、テーブル ビューは同じサイズのままです。私が間違っていること、または望ましい効果を達成するために別の方法でできることはありますか?