Skip to content

Commit

Permalink
[Fix/#288] 홈 화면 캐릭터 이미지 크기 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanMinsung committed Nov 18, 2024
1 parent cbf3d32 commit bbcd680
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ extension ORBCharacterChatBox {
layer.borderColor = UIColor.neutral(.btnInactive).cgColor
layer.borderWidth = 1

layer.shadowColor = UIColor.primary(.black).cgColor
layer.shadowOffset = .zero
layer.shadowOpacity = 0.2
layer.shadowRadius = 10
layer.masksToBounds = false

characterNameLabel.do { label in
label.font = .offroad(style: .iosTextBold)
label.textColor = .sub(.sub4)
Expand Down
7 changes: 7 additions & 0 deletions Offroad-iOS/Offroad-iOS/Presentation/Home/View/HomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,12 @@ extension HomeView {
$0.spacing = 9
}

characterBaseImageView.do {
$0.contentMode = .scaleAspectFit
}

characterMotionView.do {
$0.contentMode = .scaleAspectFit
$0.loopMode = .loop
}

Expand Down Expand Up @@ -203,11 +208,13 @@ extension HomeView {
}

characterBaseImageView.snp.makeConstraints {
$0.top.greaterThanOrEqualTo(characterNameView.snp.bottom)
$0.bottom.equalTo(titleView.snp.top).offset(-25)
$0.centerX.equalToSuperview()
}

characterMotionView.snp.makeConstraints {
$0.top.greaterThanOrEqualTo(characterNameView.snp.bottom)
$0.bottom.equalTo(titleView.snp.top).offset(-25)
$0.centerX.equalToSuperview()
}
Expand Down

0 comments on commit bbcd680

Please sign in to comment.