{"id":20145147,"url":"https://github.com/howard-e/landmarks-swiftui","last_synced_at":"2025-07-17T06:37:44.723Z","repository":{"id":83421069,"uuid":"213171281","full_name":"howard-e/landmarks-swiftui","owner":"howard-e","description":"Landmarks is an iOS application built using SwiftUI. It is used to discover and share places you love. Built using a tutorial provided by Apple.","archived":false,"fork":false,"pushed_at":"2019-10-06T13:45:39.000Z","size":3354,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T00:12:27.014Z","etag":null,"topics":["ios","swift","swiftui","swiftui-example","tutorial"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/howard-e.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE/LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-06T13:13:33.000Z","updated_at":"2019-10-06T13:45:42.000Z","dependencies_parsed_at":"2023-03-05T15:15:43.356Z","dependency_job_id":null,"html_url":"https://github.com/howard-e/landmarks-swiftui","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/howard-e/landmarks-swiftui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howard-e%2Flandmarks-swiftui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howard-e%2Flandmarks-swiftui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howard-e%2Flandmarks-swiftui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howard-e%2Flandmarks-swiftui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/howard-e","download_url":"https://codeload.github.com/howard-e/landmarks-swiftui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howard-e%2Flandmarks-swiftui/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265573815,"owners_count":23790514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","swift","swiftui","swiftui-example","tutorial"],"created_at":"2024-11-13T22:14:30.374Z","updated_at":"2025-07-17T06:37:44.704Z","avatar_url":"https://github.com/howard-e.png","language":"Swift","readme":"# Landmarks\n\n## Overview\n\nLandmarks is an iOS application built using SwiftUI. It is used to discover and share places you love.\n\nIt served as a learning experence as it was built while doing a SwiftUI tutorial provided by Apple ([Learn to Make Apps with SwiftUI\n](https://developer.apple.com/tutorials/swiftui/tutorials)).\n\nIt is broken down into several sections.\n\n## Sections\n\n### SwiftUI Essentials\n\n**[Creating and Combining Views](https://developer.apple.com/tutorials/swiftui/creating-and-combining-views)**\n\nLaying out the views, making use of stacks to combine different UI components and adding a map through MapKit was covered in this section. Also of note was understanding the different changes introduced in Xcode 11 as it relates to creating a SwiftUI application.\n\n#### Follow-up Questions\n\n**Q1. When creating a custom SwiftUI view, where do you declare the view’s layout?**\n\n*In the body property.*\n\n\u003e Custom views implement the body property, which is a requirement of the View protocol.\n\n**Q2. Which layout renders from the following view code?**\n\n```swift\nvar body: some View {\n    HStack {\n        CircleImage()\n        VStack(alignment: .leading) {\n            Text(\"Turtle Rock\")\n                .font(.title)\n            Text(\"Joshua Tree National Park\")\n        }\n    }\n}\n```\n\n![Section 1, Question 2 Answer](https://github.com/howard-e/landmarks-swiftui/blob/master/images/s1q2_a.png)\n\n\u003e The nested horizontal and vertical stacks arrange the image to the left of the two text views.\n\n**Q3. Which of these is a correct way to return three views from a custom view’s body property?**\n\n```swift\nVStack {\n   Text(\"Turtle Rock\")\n      .font(.title)\n   Divider()\n   Text(\"Joshua Tree National Park\")\n}\n```\n\n\u003e You can use a stack to return multiple views from a body property.\n\n**Q4. Which is the correct way to use modifier methods to configure a view?**\n\n```swift\nText(\"Hello world!\")\n   .font(.title)\n   .foregroundColor(.purple)\n```\n\n\u003e A modifier returns a view that applies a new behavior or visual change. You can chain multiple modifiers to achieve the effects you need.\n\n**[Building Lists and Navigation](https://developer.apple.com/tutorials/swiftui/building-lists-and-navigation)**\n\nA way to provide users with the full list of landmarks and showing details about each location is covered in this section.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoward-e%2Flandmarks-swiftui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoward-e%2Flandmarks-swiftui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoward-e%2Flandmarks-swiftui/lists"}