-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b1ce6b9
commit fb48577
Showing
28 changed files
with
494 additions
and
2 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
SwiftUILearning/Assets.xcassets/Images/SocialMediaIcons/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
SwiftUILearning/Assets.xcassets/Images/SocialMediaIcons/facebook.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "facebook.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+6.06 KB
...Learning/Assets.xcassets/Images/SocialMediaIcons/facebook.imageset/facebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
SwiftUILearning/Assets.xcassets/Images/SocialMediaIcons/instagram.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "instagram.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+17.6 KB
...arning/Assets.xcassets/Images/SocialMediaIcons/instagram.imageset/instagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
SwiftUILearning/Assets.xcassets/Images/SocialMediaIcons/linkedin.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "linkedin.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+7.1 KB
...Learning/Assets.xcassets/Images/SocialMediaIcons/linkedin.imageset/linkedin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
SwiftUILearning/Assets.xcassets/Images/SocialMediaIcons/pinterest.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "pinterest.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+15.9 KB
...arning/Assets.xcassets/Images/SocialMediaIcons/pinterest.imageset/pinterest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
SwiftUILearning/Assets.xcassets/Images/SocialMediaIcons/skype.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "skype.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+18.5 KB
SwiftUILearning/Assets.xcassets/Images/SocialMediaIcons/skype.imageset/skype.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
SwiftUILearning/Assets.xcassets/Images/SocialMediaIcons/snapchat.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "snapchat.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+11.1 KB
...Learning/Assets.xcassets/Images/SocialMediaIcons/snapchat.imageset/snapchat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
SwiftUILearning/Assets.xcassets/Images/SocialMediaIcons/telegram.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "telegram.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+11.4 KB
...Learning/Assets.xcassets/Images/SocialMediaIcons/telegram.imageset/telegram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
SwiftUILearning/Assets.xcassets/Images/SocialMediaIcons/twitter.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "twitter.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+13.1 KB
...UILearning/Assets.xcassets/Images/SocialMediaIcons/twitter.imageset/twitter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
SwiftUILearning/Assets.xcassets/Images/SocialMediaIcons/whatsapp.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "whatsapp.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+15.7 KB
...Learning/Assets.xcassets/Images/SocialMediaIcons/whatsapp.imageset/whatsapp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,5 @@ import Foundation | |
enum ComponentType: String { | ||
case text = "Text" | ||
case image = "Image" | ||
case list = "List" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
SwiftUILearning/Components/List - Week 3/Enum/ListEnum.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// ListEnum.swift | ||
// SwiftUILearning | ||
// | ||
// Created by Shikalgar, Shahrukh on 13/07/20. | ||
// Copyright © 2020 Shahrukh Shikalgar. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
// MARK: - Enum for ListType | ||
enum ListType: String { | ||
case list = "List" | ||
case scrollView = "ScrollView" | ||
} |
18 changes: 18 additions & 0 deletions
18
SwiftUILearning/Components/List - Week 3/Model/ListHomeModel.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// ListHomeModel.swift | ||
// SwiftUILearning | ||
// | ||
// Created by Shikalgar, Shahrukh on 13/07/20. | ||
// Copyright © 2020 Shahrukh Shikalgar. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
// MARK: - ListHome Model | ||
/// Model for listHome screen | ||
struct ListHomeModel: Codable, Identifiable, Hashable { | ||
let id: Int? | ||
let title: String? | ||
let subTitle: String? | ||
let icon: String? | ||
} |
37 changes: 37 additions & 0 deletions
37
SwiftUILearning/Components/List - Week 3/View/ListHomeView.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
// ListHomeView.swift | ||
// SwiftUILearning | ||
// | ||
// Created by Shikalgar, Shahrukh on 13/07/20. | ||
// Copyright © 2020 Shahrukh Shikalgar. All rights reserved. | ||
// | ||
|
||
import SwiftUI | ||
|
||
// MARK: - Struct for ListHomeView | ||
/// View for ListHomeView | ||
struct ListHomeView: View { | ||
// MARK: - Variables | ||
private let viewModel = ListHomeViewModel() | ||
|
||
// MARK: - View | ||
/// Body for View | ||
var body: some View { | ||
List { | ||
ForEach(self.viewModel.contentViewItems, id: \.self) { item in | ||
NavigationLink(destination: self.viewModel.getDestinationView(type: item.contentType ?? "")) { | ||
Text("\(item.contentType ?? "")") | ||
} | ||
} | ||
}.listStyle(GroupedListStyle()) | ||
.navigationBarTitle("SwiftUI List") | ||
} | ||
} | ||
|
||
// MARK: - ListHomeView_Previews | ||
/// Preview provider for ListHomeView | ||
struct ListHomeView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
ListHomeView() | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
SwiftUILearning/Components/List - Week 3/View/SubViews/HomeScrollView.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
// HomeScrollView.swift | ||
// SwiftUILearning | ||
// | ||
// Created by Shikalgar, Shahrukh on 13/07/20. | ||
// Copyright © 2020 Shahrukh Shikalgar. All rights reserved. | ||
// | ||
|
||
import SwiftUI | ||
|
||
// MARK: - Struct for HomeScrollView | ||
/// View for HomeScrollView | ||
struct HomeScrollView: View { | ||
// MARK: - Variables | ||
private let viewModel = ListHomeViewModel() | ||
|
||
// MARK: - View | ||
/// Body for View | ||
var body: some View { | ||
ScrollView { | ||
ForEach(self.viewModel.getListHomeModel(), id: \.self) { item in | ||
SocialMediaListRow(icon: item.icon ?? "", | ||
title: item.title ?? "", | ||
subTitle: item.subTitle ?? "") | ||
} | ||
}.padding() | ||
.navigationBarTitle(Text("ScrollView"), displayMode: .inline) | ||
} | ||
} | ||
|
||
// MARK: - HomeScrollView_Previews | ||
/// Preview provider for HomeScrollView | ||
struct HomeScrollView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
HomeScrollView() | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
SwiftUILearning/Components/List - Week 3/View/SubViews/ListTypeView.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// | ||
// ListTypeView.swift | ||
// SwiftUILearning | ||
// | ||
// Created by Shikalgar, Shahrukh on 13/07/20. | ||
// Copyright © 2020 Shahrukh Shikalgar. All rights reserved. | ||
// | ||
|
||
import SwiftUI | ||
|
||
// MARK: - Struct for ListTypeView | ||
/// View for ListTypeView | ||
struct ListTypeView: View { | ||
// MARK: - Variables | ||
private let viewModel = ListHomeViewModel() | ||
|
||
// MARK: - View | ||
/// Body for View | ||
var body: some View { | ||
List { | ||
ForEach(self.viewModel.getListHomeModel(), id: \.self) { item in | ||
SocialMediaListRow(icon: item.icon ?? "", | ||
title: item.title ?? "", | ||
subTitle: item.subTitle ?? "") | ||
} | ||
} | ||
.listStyle(PlainListStyle()) | ||
.navigationBarTitle(Text("List"), displayMode: .inline) | ||
} | ||
} | ||
|
||
// MARK: - ListTypeView_Previews | ||
/// Preview provider for ListTypeView | ||
struct ListTypeView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
ListTypeView() | ||
} | ||
} |
Oops, something went wrong.