Added layer name generation

Updated sample too to add UIButton in examples
This is not necessary since `attributedText` is synchronized with `text`, i.e. if one changes the other is changed as well.