杨林

Results 2 comments of 杨林

@GalCohen @KelvinJin use autoLayout ``` override init(frame: CGRect) { super.init(frame: frame) contentView.translatesAutoresizingMaskIntoConstraints = false contentView.topAnchor.constraint(equalTo: topAnchor).isActive = true contentView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true contentView.leftAnchor.constraint(equalTo: leftAnchor).isActive = true contentView.rightAnchor.constraint(equalTo: rightAnchor).isActive = true...

@KelvinJin iOS 14 programmatically created cells will reset Origin (changed by anchor) You can try to optimize your code in the following ways ``` swift else if attributes.scrollDirection == .horizontal...