'Defining packages with interfaces on Swift
I have more experience in languages like C# and Java so maybe I'm asking the wrong question, but I'm trying to define on Swift packages with an interface, so any package that implements that interface (or protocol) can replace it. For example on the data access package I want to define an interface with the CRUD methods so if I change the DB with another type the rest of the code isn't affected. If this possible? And if the answer is "yes", which is the best approach to accomplish this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
