我如何在列表行上制作自定义叠加层,以便在点击时突出显示它。我正在使用NaviagationLink并且我已经改变了
UITableViewCell.appearance().cellSelectionStyle = .none
Run Code Online (Sandbox Code Playgroud)
为了不使用默认的灰色选择。
我试图向@State isSelected我的 Cell添加一些,但我不知道如何/何时更改它以获得这种影响。我试图添加,onTapGesture()但它阻止了 NavigationLink,并且不提供开始、结束状态,刚刚结束。