@@ -20,7 +20,8 @@ View the latest [Appledoc](http://ngageoint.github.io/ogc-api-features-json-ios/
2020#### Read ####
2121
2222``` objectivec
23-
23+ @import OGC_APIFeaturesJSON;
24+
2425OAFCollections *collections = [OAFFeaturesConverter jsonToCollections: collectionsContent] ;
2526OAFCollection * collection = [ OAFFeaturesConverter jsonToCollection: collectionContent ] ;
2627OAFFeatureCollection * featureCollection = [ OAFFeaturesConverter jsonToFeatureCollection: featureCollectionContent ] ;
@@ -39,43 +40,48 @@ NSString *featureCollectionContent = [OAFFeaturesConverter objectToJSON:featureC
3940
4041### Build ###
4142
42- [ ![ Build & Test] ( https://github.com/ngageoint/ogc-api-features-json-ios/workflows/Build%20&%20Test/badge.svg )] ( https://github.com/ngageoint/ogc-api-features-json-ios/actions/workflows/build-test.yml )
43-
44- Build this repository using Xcode and/or CocoaPods:
45-
46- pod repo update
47- pod install
43+ [ ![ Build] ( https://github.com/ngageoint/ogc-api-features-json-ios/workflows/Build/badge.svg )] ( https://github.com/ngageoint/ogc-api-features-json-ios/actions/workflows/build.yml )
4844
49- Open ogc-api-features-json-ios.xcworkspace in Xcode or build from command line :
45+ Build this repository using Swift Package Manager :
5046
51- xcodebuild -workspace 'ogc-api-features-json-ios.xcworkspace' -scheme ogc-api-features-json-ios build
47+ swift build
5248
5349Run tests from Xcode or from command line:
5450
55- xcodebuild test -workspace 'ogc-api-features-json-ios.xcworkspace' -scheme ogc-api-features-json-ios -destination 'platform=iOS Simulator,name=iPhone 15'
51+ swift test
5652
57- ### Include Library ###
53+ Open the Swift Package in Xcode from command line:
5854
59- Include this repository by specifying it in a Podfile using a supported option.
55+ open Package.swift
6056
61- Pull from [ CocoaPods ] ( https://cocoapods.org/pods/ogc-api-features-json-ios ) :
57+ ### Include Library ###
6258
63- pod 'ogc-api-features-json-ios', '~> 4.2.5'
59+ Use this library via SPM in your Package.swift:
6460
65- Pull from GitHub:
61+ dependencies: [
62+ .package(url: "https://github.com/ngageoint/ogc-api-features-json-ios.git", branch: "release/5.0.0"),
63+ ]
64+
65+ Or as a tagged release:
6666
67- pod 'ogc-api-features-json-ios', :git => 'https://github.com/ngageoint/ogc-api-features-json-ios.git', :branch => 'master'
68- pod 'ogc-api-features-json-ios', :git => 'https://github.com/ngageoint/ogc-api-features-json-ios.git', :tag => '4.2.5'
67+ dependencies: [
68+ .package(url: "https://github.com/ngageoint/ogc-api-features-json-ios.git", from: "5.0.0"),
69+ ]
6970
70- Include as local project :
71+ Reference it in your Package.swift target :
7172
72- pod 'ogc-api-features-json-ios', :path => '../ogc-api-features-json-ios'
73+ .target(
74+ name: "MyApp",
75+ dependencies: [
76+ .product(name: "OGC_APIFeaturesJSON", package: "ogc-api-features-json-ios"),
77+ ],
78+ ),
7379
7480### Swift ###
7581
76- To use from Swift, import the ogc-api-features-json-ios bridging header from the Swift project's bridging header
82+ To use from Swift:
7783
78- # import "ogc-api-features-json-ios-Bridging-Header.h"
84+ import OGC_APIFeaturesJSON
7985
8086### Remote Dependencies ###
8187
0 commit comments