WorldDownTown / RangeSeekSlider

RangeSeedSlider provides a customizable range slider like a UISlider.
MIT License
755 stars 282 forks source link

Add swift tools version to Package.swift file, to make it work with SPM #108

Closed AldoMartinez closed 2 years ago

LiamKarlMitchell commented 2 years ago

the manifest is missing a Swift tools version specification; consider prepending to the manifest '// swift-tools-version:5.5.0'

to specify the current Swift toolchain version as the lowest Swift version supported by the project; if such a specification already exists, consider moving it to the top of the manifest, or prepending it with '//' to help Swift Package Manager find it in

Is there a work-around to make it work before the pull request is merged?

Edit: https://developer.apple.com/documentation/swift_packages/editing_a_package_dependency_as_a_local_package

ibcylon commented 2 years ago

https://tanaschita.com/20210417-how-to-add-local-swift-package-to-ios-project/

Using cocoa pods or following the link

  1. Download package zip as file
  2. Project -> Package Dependency -> + -> Add Local -> Select package folder
  3. Editing Package.swift like AldoMartinz commit
  4. Project -> Target -> General -> Frameworks, libraries, and Embeded Content Sections -> + -> Select RangeSeekSlider
  5. using like other library e.g. 'import RangeSeekSlider'
LiamKarlMitchell commented 2 years ago

Pretty much what I did, just had to add the info. Checked out Aldo's one https://github.com/AldoMartinez/RangeSeekSlider