Skip to content

Instantly share code, notes, and snippets.

View cemkazim's full-sized avatar

Cem Kazım cemkazim

View GitHub Profile
@cemkazim
cemkazim / BorderlineTests.swift
Last active January 13, 2023 22:39
BorderlineTests
import XCTest
@testable import UnittunMuBeni
class BorderlineTests: XCTestCase {
var viewModel: BorderlineViewModel!
// fake age list data
var sut: [Int]!
override func setUpWithError() throws {
@cemkazim
cemkazim / BorderlineViewModel.swift
Last active January 13, 2023 22:11
BorderlineViewModel
class BorderlineViewModel {
// MARK: - Private Properties
private var ageList: [Int] = [24, 25, 26]
// MARK: - Methods
func setAgeList(_ list: [Int]) {
ageList = list
//
// AccessToken.swift
// Cemotify
//
// Created by Cem Kazım Genel on 03/02/2022.
//
import Foundation
struct AccessToken: Decodable {
"grant_type": "client_credentials"
// 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"
//
// AlbumListView.swift
// Cemotify
//
// Created by Cem Kazım Genel on 01/02/2022.
//
import SwiftUI
struct AlbumListView: View {
//
// AlbumListViewModel.swift
// Cemotify
//
// Created by Cem Kazım Genel on 02/02/2022.
//
import Foundation
import Combine
//
// ArtistAlbums.swift
// Cemotify
//
// Created by Cem Kazım Genel on 02/02/2022.
//
import Foundation
struct ArtistAlbums: Decodable, Hashable {
//
// ArtistAlbums.swift
// Cemotify
//
// Created by Cem Kazım Genel on 02/02/2022.
//
import Foundation
struct ArtistAlbums: Decodable, Hashable {
//
// DataProvider.swift
// Cemotify
//
// Created by Cem Kazım Genel on 02/02/2022.
//
import Foundation
import Combine