This PR contains the work done to set the `App` target for the **Reviews** project. Reviewed-on: #1 Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
27 lines
503 B
Swift
27 lines
503 B
Swift
//
|
|
// AppDelegate.swift
|
|
// AppStoreReviews
|
|
//
|
|
// Created by Dmitrii Ivanov on 21/07/2020.
|
|
// Copyright © 2020 ING. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
struct Review {
|
|
let author: String
|
|
let version: String
|
|
let rating: Int
|
|
let title: String
|
|
let id: String
|
|
let content: String
|
|
|
|
func ratingVersionText() -> String {
|
|
var stars = ""
|
|
for _ in 0..<rating {
|
|
stars += "⭐️"
|
|
}
|
|
return "\(stars) (ver: \(version))"
|
|
}
|
|
}
|