Skip to content

[Refactoring] 기타 자잘하게 수정 필요한 사항들 #270

@xohxe

Description

@xohxe

리팩토링

리팩토링 할 코드에 대한 설명

요구사항

  • UX개선
  • 기타 오류들을 확인하고 고쳐내자.

Todo

  • 메인 지도뷰에서 리스트뷰 클릭 시, 리스트만 보여주기 -> 이에따른 커뮤니티뷰 탭 분리
  • 빌딩명 수정하기
  • 핀 체크되면 기울어지게 애니메이션 주면 좋을듯
  • 영덕대게 폰트 Import 안된거 확인 및 새로운 폰트추가하기(용량작은거로)
  • 메모지 추가
  • 디테일뷰에서 좋아요 수 표기
  • 디테일뷰에서 저장 버튼 제거
  • 카드뷰에서 하트부분에 프로필이미지들어가게 변경?
  • 프로필이미지 없을 때 default 이미지 만들어주기
  • 프로필 이미지 변경시, 기본이미지로 바꿔주는 기능도 있어야함.
  • Postview에서 업로드 한 이미지가 찌그러지는 현상

프로필이미지 없을 때 default 이미지 만들어주기

스크린샷 2024-02-23 오후 4 26 36

url이 빈 필드일 경우까지 예외처리 해주어야하므로, 다음과 같이 수정해주었습니다.

// MemoCard.swift
 if let url = profile.profilePicture, !url.isEmpty {
      if url.count > 0 {
          Button /* NavigationLink */ {
              completion(.navigate(profile: profile))
          } label: {
              KFImage(URL(string: url))
                  .resizable()
                  .scaledToFill()
                  .clipped()
                  .clipShape(.circle)
                  .frame(width: 37,height: 37)
                  .contentShape(Circle())
                  .cornerRadius(19)
          }
      }
      
  } else {
      Image("profileImg")
          .frame(width: 37,height: 37)
          .clipShape(.circle)
          
  }

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions