Updating ContentView with the tutorial. Updating README.md adding tips.
This commit is contained in:
@@ -6,6 +6,10 @@
|
|||||||
objectVersion = 77;
|
objectVersion = 77;
|
||||||
objects = {
|
objects = {
|
||||||
|
|
||||||
|
/* Begin PBXBuildFile section */
|
||||||
|
FCDCCAD62EA55E6B00CB31C9 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = FCDCCAD52EA55E6600CB31C9 /* README.md */; };
|
||||||
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
/* Begin PBXContainerItemProxy section */
|
/* Begin PBXContainerItemProxy section */
|
||||||
FCDCCAB92EA5587100CB31C9 /* PBXContainerItemProxy */ = {
|
FCDCCAB92EA5587100CB31C9 /* PBXContainerItemProxy */ = {
|
||||||
isa = PBXContainerItemProxy;
|
isa = PBXContainerItemProxy;
|
||||||
@@ -27,6 +31,7 @@
|
|||||||
FCDCCAAB2EA5586F00CB31C9 /* Landmarks.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Landmarks.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
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; };
|
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; };
|
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 */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
/* Begin PBXFileSystemSynchronizedRootGroup section */
|
/* Begin PBXFileSystemSynchronizedRootGroup section */
|
||||||
@@ -75,6 +80,7 @@
|
|||||||
FCDCCAA22EA5586F00CB31C9 = {
|
FCDCCAA22EA5586F00CB31C9 = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
|
FCDCCAD52EA55E6600CB31C9 /* README.md */,
|
||||||
FCDCCAAD2EA5586F00CB31C9 /* Landmarks */,
|
FCDCCAAD2EA5586F00CB31C9 /* Landmarks */,
|
||||||
FCDCCABB2EA5587100CB31C9 /* LandmarksTests */,
|
FCDCCABB2EA5587100CB31C9 /* LandmarksTests */,
|
||||||
FCDCCAC52EA5587100CB31C9 /* LandmarksUITests */,
|
FCDCCAC52EA5587100CB31C9 /* LandmarksUITests */,
|
||||||
@@ -212,6 +218,7 @@
|
|||||||
isa = PBXResourcesBuildPhase;
|
isa = PBXResourcesBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
|
FCDCCAD62EA55E6B00CB31C9 /* README.md in Resources */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -8,14 +8,13 @@
|
|||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
struct ContentView: View {
|
struct ContentView: View {
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
|
|
||||||
VStack {
|
VStack {
|
||||||
Image(systemName: "globe")
|
Text("Turtle Rock")
|
||||||
.imageScale(.large)
|
.font(.title)
|
||||||
.foregroundStyle(.tint)
|
|
||||||
Text("Hello, world!")
|
|
||||||
}
|
}
|
||||||
.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