if i create a custom view class that inherit from the UIView Class i can access properties with the keyword layer. for example layer.cornerRadius = 10 and for example the background with backgroundColor = (Color Literal) WITHOUT layer. 
Why? What means layer and when i use it and when not?
 
    