Swift checks for protocol compliance concerns at build time, helping developers to find some potentially fatal bugs in the code before it is run. Swift Protocols enable Swift developers to construct flexible and extensible code without sacrificing the expressiveness of the language.