Skip to content

Commit

Permalink
Merge pull request #233 from MaeumgaGym/refactoring/#230-homeImageRef…
Browse files Browse the repository at this point in the history
…actoring

🔀 :: [#230] 홈 이미지 리펙 중간 점검
  • Loading branch information
Eunho0922 authored Feb 25, 2024
2 parents 026ec6d + ea9d1c8 commit 60b12cb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ import Core
import DSKit

import Domain
import MGNetworks

public class RoutineTableViewCell: BaseTableViewCell {

static let identifier: String = "RoutineTableViewCell"
static let identifier: String = HomeResourcesService.identifier.routineTableViewCell

private var nameTitle = MGLabel(text: "오늘의 루틴",
font: UIFont.Pretendard.titleMedium,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ import DSKit
import Domain

import MindGymKit
import MGNetworks

public class StepTableViewCell: BaseTableViewCell {

static public var identifier: String = "StepTableViewCell"
static public var identifier: String = HomeResourcesService.identifier.stepTableViewCell

private lazy var stepNumberTitle = MGLabel(font: UIFont.Pretendard.titleLarge,
textColor: DSKitAsset.Colors.blue800.color,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,20 @@ import RxCocoa
import Core
import DSKit

import MGNetworks

final class HomeNavigationBar: UIView {

public var rightButtonTap: ControlEvent<Void> {
return rightButton.rx.tap
}

private let logoImageView = UIImageView().then {
$0.image = DSKitAsset.Assets.mainTitle.image.withRenderingMode(.alwaysOriginal)
$0.image = HomeResourcesService.Assets.logoImageView
$0.contentMode = .scaleToFill
}

private let rightButton = MGImageButton(image: DSKitAsset.Assets.setting.image)
private let rightButton = MGImageButton(image: HomeResourcesService.Assets.settingIcon)

private lazy var rightItemsStackView = UIStackView(arrangedSubviews: [rightButton]).then {
$0.axis = .horizontal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ public enum HomeResourcesService {
public static let rightNVButton = DSKitAsset.Assets.settingActIcon.image
public static let blackPlus = DSKitAsset.Assets.blackPlus.image
public static let blackMinus = DSKitAsset.Assets.blackMinus.image
public static let logoImageView = DSKitAsset.Assets.mainLogo.image.withRenderingMode(.alwaysOriginal)
public static let settingIcon = DSKitAsset.Assets.settingActIcon.image
}
public enum Title {
public static let help = "살려줘"
}
public enum identifier {
public static let extraCollectionViewCell = "ExtraCollectionViewCell"
public static let motivationMessageTableViewCell = "MotivationMessageTableViewCell"
public static let stepTableViewCell = "StepTableViewCell"
public static let routineTableViewCell = "RoutineTableViewCell"
}
}

0 comments on commit 60b12cb

Please sign in to comment.