Changing an imported library using cocoapods

后端 未结 6 974
不知归路
不知归路 2021-02-03 22:52

I am working on a project using cocoapods and suddenly I see myself doing some changes in one of the libraries. How can I ensure that those changes will never be override by a <

6条回答
  •  無奈伤痛
    2021-02-03 22:55

    Just want to add my few cent to the answer. I encounter the same problem. As someone suggested above too I went to subclass-ing the pod lib. I was using ACEDrawingView and it has property image which is readonly. I subclass-ed it and made this property read/write. I personal feel going by sub-class is more elegant and hassle free solution to this kind of problem. Unless there is huge development you want to do on side of your main project.

提交回复
热议问题