TVCardView的focusSizeIncrease无法正常工作?

时间:2019-04-15 06:38:32

标签: tvos

我正在尝试像这样操纵focusSizeIncrease的{​​{1}}属性:

TVCardView

此后,cardView.contentSize = CGSize(width: 200, height: 200) cardView.focusSizeIncrease = NSDirectionalEdgeInsets(top: -10, leading: -10, bottom: -10, trailing: -10) 的值会更改,但是新值将被忽略。

当我在focusSizeIncreaseshouldUpdateFocus(in: UIFocusUpdateContext)中读取属性时,它已更改回默认的didUpdateFocus(in: UIFocusUpdateContext, with: UIFocusAnimationCoordinator)

有人工作吗?

Apple的文档:https://developer.apple.com/documentation/tvuikit/tvlockupview/2967067-focussizeincrease

1 个答案:

答案 0 :(得分:0)

这已由Apple在tvOS 13中修复。