p-x9 / AliasMacro

🎭 A Swift macros for defining aliases for types, functions, variables, etc.
MIT License
30 stars 0 forks source link

Modified to omit type specification when using literal #21

Closed p-x9 closed 9 months ago

p-x9 commented 9 months ago
@Alias("text", access: .inherit)
var hello = ""

@Alias("floatNum", access: .inherit)
var floatNumber = 0.0

@Alias("intNum", access: .inherit)
var integerNumber = 0

@Alias("isActive", access: .inherit)
var isOn = false