This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import XCTest | |
@testable import UnittunMuBeni | |
class BorderlineTests: XCTestCase { | |
var viewModel: BorderlineViewModel! | |
// fake age list data | |
var sut: [Int]! | |
override func setUpWithError() throws { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BorderlineViewModel { | |
// MARK: - Private Properties | |
private var ageList: [Int] = [24, 25, 26] | |
// MARK: - Methods | |
func setAgeList(_ list: [Int]) { | |
ageList = list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AccessToken.swift | |
// Cemotify | |
// | |
// Created by Cem Kazım Genel on 03/02/2022. | |
// | |
import Foundation | |
struct AccessToken: Decodable { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"grant_type": "client_credentials" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// replace ENCODED_AUTH_KEY_WITH_BASE64 with your encoded auth key | |
"Authorization": "Basic ENCODED_AUTH_KEY_WITH_BASE64" | |
"Content-Type": "application/x-www-form-urlencoded" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AlbumListView.swift | |
// Cemotify | |
// | |
// Created by Cem Kazım Genel on 01/02/2022. | |
// | |
import SwiftUI | |
struct AlbumListView: View { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AlbumListViewModel.swift | |
// Cemotify | |
// | |
// Created by Cem Kazım Genel on 02/02/2022. | |
// | |
import Foundation | |
import Combine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ArtistAlbums.swift | |
// Cemotify | |
// | |
// Created by Cem Kazım Genel on 02/02/2022. | |
// | |
import Foundation | |
struct ArtistAlbums: Decodable, Hashable { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ArtistAlbums.swift | |
// Cemotify | |
// | |
// Created by Cem Kazım Genel on 02/02/2022. | |
// | |
import Foundation | |
struct ArtistAlbums: Decodable, Hashable { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// DataProvider.swift | |
// Cemotify | |
// | |
// Created by Cem Kazım Genel on 02/02/2022. | |
// | |
import Foundation | |
import Combine |
NewerOlder