zekunyan / TTGTagCollectionView

Useful for showing text or custom view tags in a vertical or horizontal scrollable view and support Autolayout at the same time. It is highly customizable that most features of the text tag can be configured. 标签流显示控件,同时支持文字或自定义View
http://tutuge.me
MIT License
1.89k stars 260 forks source link

Fix SPM name conflicts during header resolution #101

Closed o-nnerb closed 3 years ago

o-nnerb commented 3 years ago

I imported this library into my project and Xcode couldn't compile the TTGTextTagCollectionView.h.

I searched a lot but I couldn't find the real problem because even writing the Package.swift and organizing the files equivalent to some other libraries in Objective-C, Xcode keeps throwing compilation error.

So, I discovered that the name of the lib and the TTGTagCollectionView.h was causing a conflict during the compilation process. I updated the name of the lib for SPM to TTGTags while the version for Cocoapods will continue the same.

After I did that, I could compile the lib using the SPM in my Xcode iOS project.

@zekunyan review this and let's discuss if you want 😉

Piyush08 commented 3 years ago

Hello @zekunyan @brennobemoura Can you please release a new tag because I can not use this with SPM? I am getting the following error **_https://github.com/zekunyan/TTGTagCollectionView.git has no Package.swift manifest for version 1.11.1_**

Thank you,

zekunyan commented 3 years ago

@Piyush08 The new tag 1.11.2 is done.

Piyush08 commented 3 years ago

@zekunyan Thank you so much for the great library!