Federal Data SDK built in the Swift programming language
Until the Swift language becomes more stable, consider this a beta release. See the Release notes for more information.
If you've recently upgraded to Beta 6 and you're getting weird errors, follow the steps outlined here.
This SDK has been updated for Swift 1.2. You may encounter errors with previous versions of Xcode. For earlier versions of Swift, use the https://github.com/USDepartmentofLabor/Swift-Federal-Data-SDK/releases/tag/v1.0 release.
Documentation for this SDK can be found at http://USDepartmentofLabor.github.io/Swift-Federal-Data-SDK.
Sample code for this SDK can be found at http://usdepartmentoflabor.github.io/Swift-Sample-App/.
This SDK should work the following APIs. We encourage you to test this with the APIs below as well as other federal APIs:
- BusinessUSA Business Resource API - Data is received, but unusual first character trips-up the parser.
- All Datasets (because of the format of the output, use the didCompleteWithUnParsedResults callback method)
- DailyMed
- DIRLINE
- Genetics Home Reference
- MedlinePlus Connect
- MedlinePlus HealthTopics
- National Drug File-Reference Terminology (NDF-RT)
- Pillbox (needs verification)
- RxNorm
- RxTerms
- All Datasets (SummerJobs+ service compatibility still needs work)
- go.USA.gov URL shortener
- Mobile App Gallery
- Social Media Registry (returns HTML)