Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions SportsApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
3E17D3982817733200910F14 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3E17D3962817733200910F14 /* LaunchScreen.storyboard */; };
3EB1D36228188EAB004A7ABC /* SplashViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3EB1D36128188EAB004A7ABC /* SplashViewController.swift */; };
7FD18F845F48772426796230 /* Pods_SportsApp.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F8FCAA82DAF02A6D3756DCEC /* Pods_SportsApp.framework */; };
BE50D2D9281DD3DA0034C07A /* TeamDetailsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE50D2D8281DD3DA0034C07A /* TeamDetailsViewController.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -33,6 +34,7 @@
3EB1D36128188EAB004A7ABC /* SplashViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SplashViewController.swift; sourceTree = "<group>"; };
4D30B850271081D3AB6212D5 /* Pods-SportsApp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SportsApp.debug.xcconfig"; path = "Target Support Files/Pods-SportsApp/Pods-SportsApp.debug.xcconfig"; sourceTree = "<group>"; };
AE60A169A1E11D55D312E911 /* Pods-SportsApp.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SportsApp.release.xcconfig"; path = "Target Support Files/Pods-SportsApp/Pods-SportsApp.release.xcconfig"; sourceTree = "<group>"; };
BE50D2D8281DD3DA0034C07A /* TeamDetailsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TeamDetailsViewController.swift; sourceTree = SOURCE_ROOT; };
F8FCAA82DAF02A6D3756DCEC /* Pods_SportsApp.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SportsApp.framework; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

Expand Down Expand Up @@ -163,6 +165,7 @@
3EB1D35728188854004A7ABC /* TeamDetailsScreen */ = {
isa = PBXGroup;
children = (
BE50D2D8281DD3DA0034C07A /* TeamDetailsViewController.swift */,
);
path = TeamDetailsScreen;
sourceTree = "<group>";
Expand Down Expand Up @@ -332,6 +335,7 @@
3E17D3932817733000910F14 /* SportsApp.xcdatamodeld in Sources */,
3E17D38B2817733000910F14 /* SceneDelegate.swift in Sources */,
3EB1D36228188EAB004A7ABC /* SplashViewController.swift in Sources */,
BE50D2D9281DD3DA0034C07A /* TeamDetailsViewController.swift in Sources */,
0DB90D1E2818FA2600A6065C /* SportsCollectionViewController.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
21 changes: 21 additions & 0 deletions SportsApp/View/Assets.xcassets/alahlyLogo.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "alahlyLogo.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
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 SportsApp/View/Assets.xcassets/jersey.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "jersey.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
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 SportsApp/View/Assets.xcassets/stadium.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "stadium.jpeg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
163 changes: 163 additions & 0 deletions SportsApp/View/Base.lproj/Main.storyboard

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions TeamDetailsViewController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
//
// TeamDetailsViewController.swift
// SportsApp
//
// Created by Peter Samir on 30/04/2022.
//

import UIKit

class TeamDetailsViewController: UIViewController {

@IBOutlet weak var stadiumImgV: UIImageView!
@IBOutlet weak var logoImgV: UIImageView!

@IBOutlet weak var myCard: UIView!
@IBOutlet weak var scrollView: UIScrollView!
@IBOutlet weak var jerseyImgV: UIImageView!
override func viewDidLoad() {
super.viewDidLoad()

logoImgV.image = UIImage(named: "alahlyLogo")
stadiumImgV.image = UIImage(named: "stadium")
jerseyImgV.image = UIImage(named: "jersey")

view.addSubview(scrollView)
scrollView.isScrollEnabled = true
scrollView.contentSize = CGSize(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height)
myCard.layer.shadowColor = UIColor.gray.cgColor
myCard.layer.shadowRadius = 10.0
myCard.layer.shadowOpacity = 0.9

}


/*
// MARK: - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/

}