Closed BenShutt closed 1 year ago
What's the purpose of this change? 🙂
@3SCSamDavis so we can define a font-weight with a property as well. E.g.
let someConstant = 400
TextStyle(
weight: .init(integer: someConstant)
)
I'm planning to use it in Fusion where the weight it provided in a JSON. Relying on an integer literal relies on the Swift dev writing the code
What's the purpose of this change? 🙂