C4iOS icon indicating copy to clipboard operation
C4iOS copied to clipboard

Make C4View a pure Swift class.

Open Buza opened this issue 8 years ago • 2 comments

If we have no plans to leverage the runtime flexibility that being an Obj-C subclass provides, it might make sense to make C4View (and any other classes) pure Swift classes to leverage some of the method dispatch and size improvements.

Buza avatar Mar 10 '16 20:03 Buza

I agree, we used to have methods that used selectors to dispatch events but now that is all gone.

alejandro-isaza avatar Mar 10 '16 20:03 alejandro-isaza

Actually there are two things that use this: EventSource.swift for the on(..) methods and setValue(:forKey:) which I don't see being used. If we are ok to remove the event source stuff then we can do this @C4Framework?

alejandro-isaza avatar May 04 '16 16:05 alejandro-isaza