When it comes to testing in Swift, we often need to mock data to test our code and make sure it behave as expected. import Vapor struct CurrencyRate : Content { let eur : Double let usd : Double let gbp : Double let sgd : Double private enum CodingKeys : String , CodingKey { case eur = "EUR" case usd = "USD" case gbp = "GBP" case sgd = "SGD" } } struct Converter : Content { let base : String let date : String let rates : CurrencyRate } In conclusion, we’ve seen how to integrate a Swift Server project into our iOS project to build stronger and more reliable UI tests.