Skip to content

Commit

Permalink
[FIX/#176] 게시 이미지 찌그러짐 이슈 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
crownjoe committed Nov 3, 2024
1 parent 66dc244 commit dc34325
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
31 changes: 23 additions & 8 deletions PLAT/PLAT/Presentaion/TrackAppend/TrackAppendContentSheet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -232,16 +232,23 @@ struct TrackAppendContentAddSheet: View {
state = .none
}
} label: {
Image(uiImage: image)
.resizable()

RoundedRectangle(cornerRadius: 3)
.foregroundStyle(.gray9)
.frame(width: 56, height: 56)
.aspectRatio(1, contentMode: .fill)
.overlay {
Image(uiImage: image)
.resizable()
.scaledToFill()
}
.clipShape(RoundedRectangle(cornerRadius: 3))
.overlay(alignment: .topTrailing) {
Image(systemName: "xmark")
.resizable()
.frame(width: 5, height: 5)
.padding(.init(top: 2, leading: 0, bottom: 0, trailing: 2))
.foregroundStyle(.gray7)
.foregroundStyle(.red)
}
}
Spacer()
Expand All @@ -259,9 +266,12 @@ struct TrackAppendContentAddSheet: View {
.frame(height: 238)
.background {
if isTextEditorFocused {
RoundedRectangle(cornerRadius: 8).fill(.platBlack).stroke(.platPurple)
RoundedRectangle(cornerRadius: 8)
.fill(.platBlack)
.stroke(.platPurple)
} else {
RoundedRectangle(cornerRadius: 8).fill(.gray9)
RoundedRectangle(cornerRadius: 8)
.fill(.gray9)
}
}
.overlay(alignment: .topLeading) {
Expand Down Expand Up @@ -309,9 +319,14 @@ struct TrackAppendContentAddSheet: View {
selectedImage = nil
state = .none
} label: {
Image(uiImage: image)
.resizable()
.aspectRatio(1, contentMode: .fit)
RoundedRectangle(cornerRadius: 6)
.foregroundStyle(.gray9)
.aspectRatio(1, contentMode: .fill)
.overlay {
Image(uiImage: image)
.resizable()
.scaledToFill()
}
.clipShape(RoundedRectangle(cornerRadius: 6))
.overlay(alignment: .topTrailing) {
Image(systemName: "xmark")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,10 @@ private struct TrackAppendMusicList: View {
Spacer()

Image(systemName: "plus.circle")
.font(.system(size: 24, weight: .light))
.foregroundStyle(.gray8)
.padding(.vertical, 16)
.padding(.horizontal, 4)
.onTapGesture {
trackUseCase.selectTrackAppendMusic(music: music.wrappedValue)
pathModel.pushSheet(.trackAppendContent)
Expand Down

0 comments on commit dc34325

Please sign in to comment.