Skip to content

Instantly share code, notes, and snippets.

@ffried
Created June 20, 2017 09:34
Show Gist options
  • Save ffried/2e1176e302f8f37100b1eb00cb5f2b7d to your computer and use it in GitHub Desktop.
Save ffried/2e1176e302f8f37100b1eb00cb5f2b7d to your computer and use it in GitHub Desktop.
LayerView
import UIKit
open class LayerView<Layer: CALayer>: UIView {
public final override class var layerClass: Swift.AnyClass {
return Layer.self
}
public final var concreteLayer: Layer {
return layer as! Layer
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment