Tag: @dynamicCallable

  • @dynamicCallable in Swift

    @dynamicCallable in Swift

    Hi Swifters, Today we will explore the @dynamicCallable in Swift. Lets say you have a regular Swift struct, but you want to call it like a function. Sounds weird? Well, thats exactly what @dynamicCallable lets you do! It’s like giving your types superpowers they can pretend to be functions when they are really not. Lets…