Open
Description
ASCellNode has no background color in iOS 13 version, but it is normal in iOS 12 or iOS 14, how can I fix it? @garrettmoon
class AboutCell: ASCellNode {
private let titleNode = ASTextNode()
private let lineNode = ASImageNode()
init(_ model: AboutModel) {
super.init()
automaticallyManagesSubnodes = true
accessoryType = .disclosureIndicator
lineNode.isHidden = model.type == .privacy
lineNode.style.flexGrow = 1.0
lineNode.backgroundColor = UIColor(0xE9E9E9)
titleNode.attributedText = NSAttributedString.attributed(model.title ?? "")
}
override func layoutSpecThatFits(_ constrainedSize: ASSizeRange) -> ASLayoutSpec {
LayoutSpec {
VStackLayout {
CenterLayout(centeringOptions: .Y) {
InsetLayout(insets: .zero) {
titleNode
}
}
.minHeight(frame.maxY - 1)
lineNode
}
.padding(UIEdgeInsets(top: 0, left: 15, bottom: 0, right: 15))
}
}
}
Metadata
Metadata
Assignees
Labels
No labels