this is my first question here, so feel free to point out anything I might be doing wrong ;)
I'm currently trying to give the UITableViewRowAction-Buttons in my Application a custom font. For that I used David Seeks Answer here and put in in an extension like this:
extension UITableViewCell{
override open func layoutSubviews() {
super.layoutSubviews()
for subview in self.subviews {
for sub in subview.subviews {
if String(describing: sub).range(of: "UITableViewCellActionButton") != nil {
for view in sub.subviews {
if String(describing: view).range(of: "UIButtonLabel") != nil {
if let label = view as? UILabel {
label.font = UIFont(name: "CaptureSmallz", size: label.font.pointSize)
}}}}}}}}
It works, but it seems to cut the space of the overlying cell elements: see screenshot Any ideas what I'm doing wrong here?