最佳答案
原来 Storyboard中的设置没有得到尊重。
当我在代码中添加设置时,它按预期工作。
tableView.separatorInsetReference = .fromAutomaticInsets
tableView.separatorInset = .init(top: 0, left: 10, bottom: 0, right: 0)
关于ios - UITableView 分隔符插入引用在 Storyboard 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61827214/