admin管理员组文章数量:1122832
I'm new to Swift and I'm building my first app, as you can see in the image, there are two "chevron.right" icons, but one is smaller and is attached to the margin of the card, in the code I only added this one:
Image(systemName: "chevron.right")
.foregroundColor(.gray)
I don't know where the other icon comes from, I imagine it's a property of the NavigationLink, but I'm not sure, could you help me remove it?
HStack(spacing: 16) {
ZStack {
Circle()
.fill(mainColor.opacity(0.1))
.frame(width: 50, height: 50)
Image(systemName: "cube.box.fill")
.foregroundColor(mainColor)
.font(.title2)
}
VStack(alignment: .leading, spacing: 8) {
Text(item.itemDescription)
.font(.headline)
.foregroundColor(.primary)
.lineLimit(1)
HStack {
Label(item.brand.isEmpty ? "N/A" : item.brand, systemImage: "tag.fill")
.font(.subheadline)
.foregroundColor(.secondary)
.lineLimit(1)
Spacer()
Label(item.conditionO.isEmpty ? "N/A" : item.conditionO, systemImage: "checkmark.circle.fill")
.font(.subheadline)
.foregroundColor(
item.conditionO.lowercased() == "new" ? .green :
item.conditionO.lowercased() == "used" ? .orange : .gray
)
.lineLimit(1)
}
}
.padding(.leading, 8)
Spacer()
Image(systemName: "chevron.right")
.foregroundColor(.gray)
}
.padding(.vertical, 12)
} ```
本文标签: swiftI need help removing an icon that I don39t recognize in the codeStack Overflow
版权声明:本文标题:swift - I need help removing an icon that I don't recognize in the code - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736308941a1933839.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论