stephan-tolksdorf / STULabel

A faster and more flexible label view for iOS
Other
120 stars 29 forks source link

Swift package? #14

Open ferologics opened 4 years ago

ferologics commented 4 years ago

Would it be possible to make this a swift package?

nolanw commented 7 months ago

After a brief attempt, I gave up trying to handle the varying ARC requirements between files. Swift Package Manager doesn't seem to allow specifying compiler flags per-file, only per-target. I looked around for any compiler pragmas that could turn ARC on/off within a file, but I came up empty. My next idea is to move the -fobjc-no-arc files into their own SPM target, then combine the targets into a single library product.

At that point, manual integration seemed easier, so I did that instead.

(Thank you for STULabel by the way! Link handling and truncationToken are very helpful.)