xmartlabs / XLForm

XLForm is the most flexible and powerful iOS library to create dynamic table-view forms. Fully compatible with Swift & Obj-C.
MIT License
5.77k stars 953 forks source link

Add support for distribution via Swift Package Manager (SwiftPM) #1073

Closed eneko closed 3 years ago

eneko commented 3 years ago

This PR adds support for distributing XLForm via Swift Package Manager. This would allow users of Xcode 11 and above to add XLForm as a dependency using Xcode's integrated UI.

Screen Shot 2020-09-17 at 10 58 07 AM

Summary of Changes

Testing

To manually test distribution via XLForm:

  1. On a new or existing project in Xcode
  2. Go toFile -> Swift Packages -> Add Package Dependency...
  3. Enter url https://github.com/eneko/XLFom
  4. Choose branch master
  5. Use XLForm in your app 🎉
eneko commented 3 years ago

@mats-claassen could you please re-run the CI build on Travis? CocoaPods was timing out this morning, but it's working again. Build is passing on my end: https://travis-ci.com/github/eneko/XLForm/builds/185000478

mats-claassen commented 3 years ago

Hi @eneko do you mind also adding a note to the Readme on how to install using SPM?

eneko commented 3 years ago

Hi @mats-claassen, sounds good. PR updated.

eneko commented 3 years ago

Thank you, @mats-claassen 🎉

When you have a chance, could you tag a new release? Both 4.1.1 or 4.2.0 would work.