Makes optional view attribute for initializing a view