Check out example codes for "create protocol swift". It will help you in understanding the concepts better.

Code Example 1

protocol SomeProtocol {
  // protocol code goes here
  func example()
}

struct SomeStructure: SomeProtocol {
  // you can use protocols in structs, classes, etc.
  func example() {
    // code for the example method
  }
}

Learn ReactJs, React Native from akashmittal.com