File tree Expand file tree Collapse file tree 2 files changed +31
-24
lines changed
Expand file tree Collapse file tree 2 files changed +31
-24
lines changed Original file line number Diff line number Diff line change 88 branches : [main]
99
1010jobs :
11- podspec :
12- name : Lint Podspec for ${{ matrix.platform }}
13- runs-on : macos-14
14- strategy :
15- matrix :
16- platform : [ios, osx, tvos]
17- steps :
18- - uses : actions/checkout@v3
19- - name : Lint Podspec
20- run : pod lib lint --platforms=${{ matrix.platform }}
2111 xcodebuild :
2212 name : ${{ matrix.name }}
2313 runs-on : ${{ matrix.os }}
Original file line number Diff line number Diff line change @@ -9,24 +9,41 @@ This library is an SPM-compatible repackaging of the source code from [libgeos/g
99> [ Shapely] ( https://pypi.org/project/Shapely/ ) package for Python, the
1010> [ sf] ( https://github.com/r-spatial/sf ) package for R, and others.
1111
12+ ## Requirements
13+
14+ - Swift 5.9+
15+ - iOS 12.0+ / macOS 10.13+ / tvOS 12.0+ / watchOS 4.0+ / visionOS 1.0+
16+ - Linux
17+
1218## Usage
1319
14- Swift Package Manager (SPM):
20+ ### Swift Package Manager (SPM)
21+
22+ Add the following to your ` Package.swift ` :
23+
24+ ``` swift
25+ let package = Package (
26+ name : " YourPackage" ,
27+ dependencies : [
28+ .package (url : " https://github.com/GEOSwift/geos.git" , from : " 11.0.0" )
29+ ],
30+ targets : [
31+ .target (
32+ name : " YourTarget" ,
33+ dependencies : [
34+ .product (name : " geos" , package : " geos" )
35+ ]
36+ )
37+ ]
38+ )
39+ ```
40+
41+ ### Basic Usage
1542
1643``` swift
17- // Include in your package dependencies
18- [
19- // ...
20- .package (url : " https://github.com/GEOSwift/geos.git" , from : " 11.0.0" ),
21- // ...
22- ]
23-
24- // Include in your target dependencies
25- [
26- // ...
27- " geos"
28- // ...
29- ]
44+ import geos
45+
46+ // The geos C API is now available for use
3047```
3148
3249> [ !NOTE]
You can’t perform that action at this time.
0 commit comments