Ankit Sachan
Ankit Sachan

Reputation: 7850

Use objective c protocols in swift

I have some header files declaring my protocols written in objective C, please explain how can I use these methods in swift classes confirming these protocols.

Also as there are no separate header files in swift how can I segregate different protocols in different files.

Please shed some light on this.

Upvotes: 1

Views: 487

Answers (1)

Léo Natan
Léo Natan

Reputation: 57060

Create a Swift bridging header and #import your .h files.

More information here.

Upvotes: 1

Related Questions