2 ms·
No. Swift doesn't have traits. It has protocols but these can't currently contain implementation. Implementation is currently strictly based on single inheri
by gress 12y ago
No. Swift doesn't have traits. It has protocols but these can't currently contain implementation.
Implementation is currently strictly based on single inheritance with open classes (through extension).