In Objective-C we use to do it like this
+ (Class)layerClass { return [CAEAGLLayer class]; }
Obviously this won\'t work:
CA
Swift does introspection much differently than Objective-C. You may want to take a look at the docs about Metatypes.
For your case I'd try: CAEAGLLayer.self
CAEAGLLayer.self