Updating ContentView with the tutorial. Updating README.md adding tips.
This commit is contained in:
@@ -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 = "<group>"; };
|
||||
/* 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;
|
||||
};
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
34
README.md
Normal file
34
README.md
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user