-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
21 changed files
with
344 additions
and
19 deletions.
There are no files selected for viewing
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
Binary file modified
BIN
+13.4 KB
(130%)
RM Client.xcworkspace/xcuserdata/yazantarifi.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
23 changes: 23 additions & 0 deletions
23
RM Client/Assets.xcassets/OnBoardingImage1.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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "undraw_Movie_night_re_9umk.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "undraw_Movie_night_re_9umk 1.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "undraw_Movie_night_re_9umk 2.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+28.9 KB
...ient/Assets.xcassets/OnBoardingImage1.imageset/undraw_Movie_night_re_9umk 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+28.9 KB
...ient/Assets.xcassets/OnBoardingImage1.imageset/undraw_Movie_night_re_9umk 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+28.9 KB
RM Client/Assets.xcassets/OnBoardingImage1.imageset/undraw_Movie_night_re_9umk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
RM Client/Assets.xcassets/OnBoardingImage2.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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "undraw_New_ideas_re_asn4.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "undraw_New_ideas_re_asn4 1.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "undraw_New_ideas_re_asn4 2.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+36.8 KB
RM Client/Assets.xcassets/OnBoardingImage2.imageset/undraw_New_ideas_re_asn4 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+36.8 KB
RM Client/Assets.xcassets/OnBoardingImage2.imageset/undraw_New_ideas_re_asn4 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+36.8 KB
RM Client/Assets.xcassets/OnBoardingImage2.imageset/undraw_New_ideas_re_asn4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
RM Client/Assets.xcassets/OnBoardingImage3.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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "undraw_Outer_space_re_u9vd.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "undraw_Outer_space_re_u9vd 1.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "undraw_Outer_space_re_u9vd 2.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+68.2 KB
...ient/Assets.xcassets/OnBoardingImage3.imageset/undraw_Outer_space_re_u9vd 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+68.2 KB
...ient/Assets.xcassets/OnBoardingImage3.imageset/undraw_Outer_space_re_u9vd 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+68.2 KB
RM Client/Assets.xcassets/OnBoardingImage3.imageset/undraw_Outer_space_re_u9vd.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
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
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,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> | ||
<device id="retina6_12" orientation="portrait" appearance="light"/> | ||
<dependencies> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/> | ||
<capability name="Safe area layout guides" minToolsVersion="9.0"/> | ||
<capability name="System colors in document resources" minToolsVersion="11.0"/> | ||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
</dependencies> | ||
<objects> | ||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="OnBoardingScreenVC" customModule="RM_Client" customModuleProvider="target"> | ||
<connections> | ||
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> | ||
</connections> | ||
</placeholder> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> | ||
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT"> | ||
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/> | ||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/> | ||
<color key="backgroundColor" systemColor="systemBackgroundColor"/> | ||
<point key="canvasLocation" x="132" y="-11"/> | ||
</view> | ||
</objects> | ||
<resources> | ||
<systemColor name="systemBackgroundColor"> | ||
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | ||
</systemColor> | ||
</resources> | ||
</document> |
56 changes: 56 additions & 0 deletions
56
RM Client/Features/OnBoarding/OnBoardingTabViewController.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,56 @@ | ||
// | ||
// OnBoardingTabViewController.swift | ||
// RM Client | ||
// | ||
// Created by Yazan Tarifi on 01/09/2023. | ||
// | ||
|
||
import UIKit | ||
|
||
class OnBoardingTabViewController: UIViewController { | ||
|
||
@IBOutlet weak var tabTitleLabel: UILabel! | ||
@IBOutlet weak var imageViewInstance: UIImageView! | ||
@IBOutlet weak var tabDescriptionLabel: UILabel! | ||
@IBOutlet weak var continueButtonInstance: UIButton! | ||
private var tabIndex: Int = 0 | ||
private let titles = [ | ||
"Rick And Morty TV Show", | ||
"Discover News", | ||
"Next Version of the Planet" | ||
] | ||
|
||
private let messages = [ | ||
"Welcome to Rick and Morty IOS Client Application, this is the First Full Demo App Contains Most cases of IOS App Development, Swipe Ma Friendo Swipe", | ||
"You can Here Descover Characters, Stories, Articles and More, Swipe Ma Friendo Swipe", | ||
"You Can go to Another Planet in this Application by Trying Morty Expermentals Click Continue to Continue xD" | ||
] | ||
|
||
public static func getInstance(index: Int) -> OnBoardingTabViewController { | ||
let vc = OnBoardingTabViewController() | ||
vc.addTabIndex(index: index) | ||
return vc | ||
} | ||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
if tabIndex == 2 { | ||
continueButtonInstance?.isHidden = false | ||
} else { | ||
continueButtonInstance?.isHidden = true | ||
} | ||
|
||
imageViewInstance?.image = UIImage(named: "OnBoardingImage\(tabIndex + 1)") | ||
tabTitleLabel?.text = titles[tabIndex] | ||
tabDescriptionLabel?.text = messages[tabIndex] | ||
} | ||
@IBAction func onContinueButtonListener(_ sender: Any) { | ||
RmLocalStorage.shared.onUpdateAppOpeningStatus(newStatus: true) | ||
self.navigationController?.pushViewController(HomeScreenVC.getInstance(), animated: true) | ||
} | ||
|
||
public func addTabIndex(index: Int) { | ||
self.tabIndex = index | ||
} | ||
|
||
} |
Oops, something went wrong.