Skip to content

Commit

Permalink
[Feat/#44] HomeModel - 시간 더미데이터 구축
Browse files Browse the repository at this point in the history
  • Loading branch information
boyeon0119 committed Jan 10, 2024
1 parent 89a8561 commit 2c76f9b
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion HMH_iOS/HMH_iOS/Presentation/Home/Models/AppUsingTimeModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,37 @@
// Created by 김보연 on 1/10/24.
//

import Foundation
import UIKit

struct AppUsingTimeModel {

let appGoalTime: Int
let usingAppIcon: UIImage
let usingAppName: String
let usedTime: Int

init(appGoalTime: Int, usingAppIcon: UIImage, usingAppName: String, usedTime: Int) {
self.appGoalTime = appGoalTime
self.usingAppIcon = usingAppIcon
self.usingAppName = usingAppName
self.usedTime = usedTime
}
}

var appUsingTimeModel: [AppUsingTimeModel] = [

.init(appGoalTime: 7200000,
usingAppIcon: ImageLiterals.TabBar.icHomeSelected,
usingAppName: "Instagram",
usedTime: 3200000),

.init(appGoalTime: 2700000,
usingAppIcon: ImageLiterals.TabBar.icChallengeSelected,
usingAppName: "melon",
usedTime: 1500000),

.init(appGoalTime: 9000000,
usingAppIcon: ImageLiterals.TabBar.icMyPageSelected,
usingAppName: "Netflix",
usedTime: 7900000),
]

0 comments on commit 2c76f9b

Please sign in to comment.