Skip to content

Commit

Permalink
create a Views folder and HomeView in it
Browse files Browse the repository at this point in the history
  • Loading branch information
Amjadoudeh committed Feb 4, 2022
1 parent a5472ae commit b86c0c8
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 13 deletions.
12 changes: 12 additions & 0 deletions Instagram.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
70E4EE5A27AC92AC0084586B /* PostContent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 70E4EE5927AC92AC0084586B /* PostContent.swift */; };
70E4EE5C27AC99B40084586B /* Post.swift in Sources */ = {isa = PBXBuildFile; fileRef = 70E4EE5B27AC99B40084586B /* Post.swift */; };
70E4EE5E27ACA03D0084586B /* TabBar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 70E4EE5D27ACA03D0084586B /* TabBar.swift */; };
70E4EE6227AD866B0084586B /* HomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 70E4EE6127AD866B0084586B /* HomeView.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -58,6 +59,7 @@
70E4EE5927AC92AC0084586B /* PostContent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostContent.swift; sourceTree = "<group>"; };
70E4EE5B27AC99B40084586B /* Post.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Post.swift; sourceTree = "<group>"; };
70E4EE5D27ACA03D0084586B /* TabBar.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TabBar.swift; sourceTree = "<group>"; };
70E4EE6127AD866B0084586B /* HomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeView.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -108,6 +110,7 @@
70DDB57027A9E995002DB49A /* Instagram */ = {
isa = PBXGroup;
children = (
70E4EE6027AD861A0084586B /* views */,
70E4EE5F27AD85640084586B /* Components */,
70DDB57127A9E995002DB49A /* InstagramApp.swift */,
70DDB57327A9E995002DB49A /* ContentView.swift */,
Expand Down Expand Up @@ -156,6 +159,14 @@
path = Components;
sourceTree = "<group>";
};
70E4EE6027AD861A0084586B /* views */ = {
isa = PBXGroup;
children = (
70E4EE6127AD866B0084586B /* HomeView.swift */,
);
path = views;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -289,6 +300,7 @@
70E4EE5E27ACA03D0084586B /* TabBar.swift in Sources */,
70E4EE5427AC8F380084586B /* Header.swift in Sources */,
70DDB57427A9E995002DB49A /* ContentView.swift in Sources */,
70E4EE6227AD866B0084586B /* HomeView.swift in Sources */,
70E4EE5A27AC92AC0084586B /* PostContent.swift in Sources */,
70E4EE5C27AC99B40084586B /* Post.swift in Sources */,
70DDB57227A9E995002DB49A /* InstagramApp.swift in Sources */,
Expand Down
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 1 addition & 13 deletions Instagram/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,7 @@ import SwiftUI

struct ContentView: View {
var body: some View {
VStack(spacing: 0.0) {
Header()
ScrollView(.vertical, showsIndicators: true)
{
Stories()
Divider()
Post()
Post(image: "amjad2", description: "Viva flamenca")
Post(image: "dog", description: "My babay")
Post(image: "SC", description: "What's next in Music is first at SoundCloud")
}
TabBar()
}
TabBar()
}
}

Expand Down
25 changes: 25 additions & 0 deletions Instagram/views/HomeView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// HomeView.swift
// Instagram
//
// Created by Amjad Oudeh on 04.02.22.
//

import SwiftUI

struct HomeView: View {
var body: some View {
VStack(spacing: 0.0) {
Header()
ScrollView(.vertical, showsIndicators: true)
{
Stories()
Divider()
Post()
Post(image: "amjad2", description: "Viva flamenca")
Post(image: "dog", description: "My babay")
Post(image: "SC", description: "What's next in Music is first at SoundCloud")
}
}
}
}

0 comments on commit b86c0c8

Please sign in to comment.