From 7682358b24417b6c7979f134083ae59530d5150e Mon Sep 17 00:00:00 2001 From: Maxime Delporte Date: Sun, 19 Oct 2025 20:13:21 +0200 Subject: [PATCH] Updating ContentView with the tutorial. Updating README.md adding tips. --- Landmarks.xcodeproj/project.pbxproj | 7 ++++++ Landmarks/ContentView.swift | 9 ++++---- README.md | 34 +++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 README.md diff --git a/Landmarks.xcodeproj/project.pbxproj b/Landmarks.xcodeproj/project.pbxproj index 1649289..5fcadb0 100644 --- a/Landmarks.xcodeproj/project.pbxproj +++ b/Landmarks.xcodeproj/project.pbxproj @@ -6,6 +6,10 @@ objectVersion = 77; objects = { +/* Begin PBXBuildFile section */ + FCDCCAD62EA55E6B00CB31C9 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = FCDCCAD52EA55E6600CB31C9 /* README.md */; }; +/* End PBXBuildFile section */ + /* Begin PBXContainerItemProxy section */ FCDCCAB92EA5587100CB31C9 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; @@ -27,6 +31,7 @@ FCDCCAAB2EA5586F00CB31C9 /* Landmarks.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Landmarks.app; sourceTree = BUILT_PRODUCTS_DIR; }; FCDCCAB82EA5587100CB31C9 /* LandmarksTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LandmarksTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; FCDCCAC22EA5587100CB31C9 /* LandmarksUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LandmarksUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + FCDCCAD52EA55E6600CB31C9 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFileSystemSynchronizedRootGroup section */ @@ -75,6 +80,7 @@ FCDCCAA22EA5586F00CB31C9 = { isa = PBXGroup; children = ( + FCDCCAD52EA55E6600CB31C9 /* README.md */, FCDCCAAD2EA5586F00CB31C9 /* Landmarks */, FCDCCABB2EA5587100CB31C9 /* LandmarksTests */, FCDCCAC52EA5587100CB31C9 /* LandmarksUITests */, @@ -212,6 +218,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + FCDCCAD62EA55E6B00CB31C9 /* README.md in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/Landmarks/ContentView.swift b/Landmarks/ContentView.swift index 0782e88..25527d0 100644 --- a/Landmarks/ContentView.swift +++ b/Landmarks/ContentView.swift @@ -8,14 +8,13 @@ import SwiftUI struct ContentView: View { + var body: some View { + VStack { - Image(systemName: "globe") - .imageScale(.large) - .foregroundStyle(.tint) - Text("Hello, world!") + Text("Turtle Rock") + .font(.title) } - .padding() } } diff --git a/README.md b/README.md new file mode 100644 index 0000000..2cca9dc --- /dev/null +++ b/README.md @@ -0,0 +1,34 @@ +# Landmarks + +Coming from the official Apple tutorial that can be found here : +https://developer.apple.com/tutorials/swiftui/ + +The goal of this repository is to help students beginning in iOS development. +In the **Tips** section, I'll add some novelty for Xcode 26 that might not apply to old Xcode version. + +## Tips + +### Section 2 - Step 2 + +Command + Control + Click : Only show the command **Embed...** +Sadly, we can't see the option **"Show SwiftUI Inspector"** alongside the other options. +It's not a problem since we can add the necessary modifications directly using the text editor. + +### Section 2 - Step 6 + +Same thing is happening than the previous step. +Control + Click : This time, more options are available but **"Show SwiftUI Inspector"** isn't here. +It's not a problem since we can add the necessary modifications directly using the text editor. + +### Section 3 - Step 1 + +The option **"Embed in VStack"** doesn't exist anymore. The only option is **"Embed..."**. +Again, it's not a problem. We can write **VStack** after selecting this option, instead of **Container**. + +### Section 3 - Step 2 + +The plus button (+) at the top-right of the Xcode window, doesn't open anymore the Library panel. + +Two options remains through : +1. The shortcut : CMD + SHIFT + L +2. The menu : View > Show Library