I am not able to get custom editor attribute by category id. 

Here is my code:

```
$categoryData = $objectManager->create('Magento\Catalog\Model\Category')->load($collection);
 $swatch_attribute = $categoryData->getData('swatch_icons');

```

I am not getting the result with this code.

Does anyone have any idea?

Thanks