-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Motivation - Section 2.4. Create the List of Landmarks ### Key Changes - Section 2.4. Create the List of Landmarks 예제 코드 및 주석 추가 ### To Reviewers - 없음
- Loading branch information
1 parent
e785d93
commit 342acc7
Showing
4 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+2.01 KB
(100%)
...proj/project.xcworkspace/xcuserdata/raymondkim.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// LandmarkList.swift | ||
// tutorial | ||
// | ||
// Created by 김제필 on 8/11/22. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct LandmarkList: View { | ||
var body: some View { | ||
List { // 2.4.2. List 객체 내부에 LandmarkRow 인스턴스를 배치한다 | ||
LandmarkRow(landmark: landmarks[0]) | ||
LandmarkRow(landmark: landmarks[1]) | ||
} | ||
} | ||
} | ||
|
||
struct LandmarkList_Previews: PreviewProvider { | ||
static var previews: some View { | ||
LandmarkList() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters