It’s very common to think of APIs as something that is only relevant for packaged code, like SDKs or Frameworks, Back-End services even. But, most definitely, we are all API designers whether we like it or not - even if your code is bundled.
However, designing great APIs while balancing between ease-of-use, capabilities and the fact that different developers have varying levels of knowledge, can be very tricky.
Let’s look at some best practices and techniques that are good to keep in mind when designing various APIs in Swift, and also, how we can create APIs that are both easy to use, non-redundant, and powerful all together.