twostraws / Ignite

A static site generator for Swift developers.
MIT License
1.37k stars 59 forks source link

Feature Request: Card Content Text Positions #39

Open NigelGee opened 4 weeks ago

NigelGee commented 4 weeks ago

At the moment it can put the text .bottom, .top, .overlay (plus recent added .overlayCenter).

Could it have the text .trailing and .leading (which would snap to .bottom if .trailing and .top if .leading when size get too small).

This could also have alignment for the text to be in the top, center, or bottom of the image.

Card(imageName: "/images/rug.jpg") {
    Text(placeholderLength: 100)
}
.contentPosition(.trailing(alignment: .top)
NigelGee commented 4 weeks ago
Screenshot 2024-04-30 at 21 24 46