Closed SLboat closed 6 years ago
@SLboat you should be able to do it like this:
let style = StringStyle(
.color(exampleColor),
.font(exampleFont),
.extraAttributes([
.shadow: attributedStringShadow // the shadow from your example
])
)
It would be great to add support for shadow natively in BonMot. Maybe this is something we'll add in the future, now that we know someone is using it. But that's why we added extraAttributes
- so you can use all supported attributes, even ones we haven't added support for yet.
Let me know if this works for you!
@ZevEisenberg oh!how a great work! thank you!!!
@ZevEisenberg i want share this. shadowBlurRadius is a very cool effect in a device:)it's like bold,but mush beautiful.
the orgin nsattributestring code should like this,i cant found any bonmot way to make the shadow