Skip to content

Obtaining JSON from the API using Alamofire(Swift4.2)

   

Old article (Swift3) is here Getting JSON from the API using Alamofire

#Xcode 10.1
#Swift 4.2

This is a sample to get information from the weather API using Alamofire, a famous swift communication library, and SwiftyJSON, a famous swift JSON library.
In this sample, the JSON is acquired asynchronously and an alert is displayed.
Don't forget to set up the ATS as well.

alt

  1. Renaming a project in Xcode10
  2. Creating a Group Style TableView
  3. Getting the SafeArea
  4. Read barcodes in iOS
  5. Search with SearchBar in CollectionView
  6. Implementing a flowing background
  7. PageViewController & PageControl