     if let contentMode = self.contentMode {
       attrs.append(ViewContentMode(contentMode))
     }
+    if let layerOptions = self.layerOptions {
+      attrs.append(contentsOf: layerOptions.viewAttributes())
+    }
     return attrs
   }
 }

    view.contentMode = val;
  }
}

  let alpha: CGFloat?
  
  let contentMode: UIViewContentMode?

  let layerOptions: LayerOptions?
  
  public init(backgroundColor: UIColor? = nil,
              tintColor: UIColor? = nil,
