Skip to content

mrlegowatch/MyJSONFeedDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

MyJSONFeedDemo

An example JSON feed demo written in Swift 4 using Codable on a USGS GeoJSON data feed.

The interesting bits are:

  • USGSEarthquakeData in USGSEarthquakeData.swift - Nested struct uses Codable without requiring any customization
  • fetch() in USGSEarthquakeData.swift - Fetches the data from the USGS web site
  • viewDidLoad() in MasterViewController.swift - Triggers the fetch

I developed this demo while writing these medium.com articles:

About

An example JSON feed demo written in Swift 4 using Codable on a USGS GeoJSON data feed.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages