85: HotProspects, part 7

그루두·2024년 8월 7일
0

100 days of SwiftUI

목록 보기
93/108

Project 16, part 7

challenge

  1. Add an icon to the “Everyone” screen showing whether a prospect was contacted or not.

  2. Add an editing screen, so users can adjust the name and email address of someone they scanned previously. (Tip: Use the simple form of NavigationLink rather than navigationDestination(), to avoid your list selection code confusing the navigation link.)

  3. Allow users to customize the way contacts are sorted – by name or by most recent.

solution

1. Everyone tab에서 contated, uncontacted 다르게 표시하기

깃헙 링크

2. NavigationLink로 prospect 수정할 수 있게 하기

깃헙 링크

3. 연락처를 이름이나 이메일에 따라 정렬할 수 있게 하기

깃헙 링크

initializer를 이용해서 변경된 sortdescriptor를 사용해보았으나, 의도대로 되지 않는다. list view를 분리하지 않고도 하는 방법을 알고 싶다.

profile
계속 해보자

0개의 댓글

관련 채용 정보