Tag: Method Swizzling
All the articles with the tag "Method Swizzling".
-
iOS 自定义 Swipe Actions:绕过系统限制实现宽度、间距与样式定制
Published date:iOS 的 UISwipeActionsConfiguration API 自 iOS 11 以来几乎没有进化:按钮宽度固定、无法精确控制间距、视觉样式只支持 image + backgroundColor。本文记录通过 swizzle + KVC 的方式,在不重写整个 swipe 容器的前提下,精准扩展这些能力。