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
Binary file added .DS_Store
Binary file not shown.
384 changes: 384 additions & 0 deletions fahadPro/fahadPro.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>fahadPro.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
85 changes: 85 additions & 0 deletions fahadPro/fahadPro/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
//
// AppDelegate.swift
// fahadPro
//
// Created by Qahtani's MacBook Pro on 11/24/21.
//

import UIKit
import CoreData
@main
class AppDelegate: UIResponder, UIApplicationDelegate {



func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}

// MARK: UISceneSession Lifecycle

func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}

func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}

// MARK: - Core Data stack
lazy var persistentContainer: NSPersistentContainer = {
/*
The persistent container for the application. This implementation
creates and returns a container, having loaded the store for the
application to it. This property is optional since there are legitimate
error conditions that could cause the creation of the store to fail.
*/
let container = NSPersistentContainer(name: "FileDAta")
container.loadPersistentStores(completionHandler: { (storeDescription, error) in
if let error = error as NSError? {
// Replace this implementation with code to handle the error appropriately.
// fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
/*
Typical reasons for an error here include:
* The parent directory does not exist, cannot be created, or disallows writing.
* The persistent store is not accessible, due to permissions or data protection when the device is locked.
* The device is out of space.
* The store could not be migrated to the current model version.
Check the error message to determine what the actual problem was.
*/
fatalError("Unresolved error \(error), \(error.userInfo)")
}
})
return container
}()
// MARK: - Core Data Saving support
func saveContext () {
let context = persistentContainer.viewContext
if context.hasChanges {
do {
try context.save()
} catch {
// Replace this implementation with code to handle the error appropriately.
// fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
let nserror = error as NSError
fatalError("Unresolved error \(nserror), \(nserror.userInfo)")
}
}
}
}











Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
98 changes: 98 additions & 0 deletions fahadPro/fahadPro/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"images" : [
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "60x60"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "60x60"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "20x20"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "20x20"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "29x29"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "40x40"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "83.5x83.5"
},
{
"idiom" : "ios-marketing",
"scale" : "1x",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
6 changes: 6 additions & 0 deletions fahadPro/fahadPro/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
25 changes: 25 additions & 0 deletions fahadPro/fahadPro/Base.lproj/LaunchScreen.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>
124 changes: 124 additions & 0 deletions fahadPro/fahadPro/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="19162" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina6_0" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19144"/>
<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>
<scenes>
<!--View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="fahadPro" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="390" height="844"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="ضع اسم الملف أو المجلد" textAlignment="right" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="HVW-nF-usG">
<rect key="frame" x="45" y="82" width="300" height="34"/>
<constraints>
<constraint firstAttribute="width" constant="300" id="jJy-by-k53"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="INI-KT-HJa">
<rect key="frame" x="0.0" y="328" width="390" height="516"/>
<color key="backgroundColor" systemColor="systemYellowColor"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="cell-id" id="YiH-xv-4V1" customClass="TableViewCell" customModule="fahadPro" customModuleProvider="target">
<rect key="frame" x="0.0" y="44.666666030883789" width="390" height="41"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="YiH-xv-4V1" id="gRl-kL-taZ">
<rect key="frame" x="0.0" y="0.0" width="390" height="41"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ft5-6d-YAG">
<rect key="frame" x="100" y="10" width="190" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstItem="Ft5-6d-YAG" firstAttribute="leading" secondItem="gRl-kL-taZ" secondAttribute="leading" constant="100" id="H3G-go-epC"/>
<constraint firstItem="Ft5-6d-YAG" firstAttribute="top" secondItem="gRl-kL-taZ" secondAttribute="top" constant="10" id="MJX-dw-7qY"/>
<constraint firstAttribute="bottom" secondItem="Ft5-6d-YAG" secondAttribute="bottom" constant="10" id="YCD-MT-mmQ"/>
<constraint firstAttribute="trailing" secondItem="Ft5-6d-YAG" secondAttribute="trailing" constant="100" id="cx1-fm-Kbz"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" red="0.98123246431350708" green="0.9420580267906189" blue="0.95548433065414429" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<connections>
<outlet property="LabelName" destination="Ft5-6d-YAG" id="e7v-zF-yq8"/>
</connections>
</tableViewCell>
</prototypes>
</tableView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="TbO-sQ-Fgp">
<rect key="frame" x="162" y="178" width="55" height="48"/>
<color key="backgroundColor" systemColor="systemIndigoColor"/>
<constraints>
<constraint firstAttribute="width" constant="55" id="NoP-ga-VKA"/>
<constraint firstAttribute="height" constant="48" id="U4q-sI-dIE"/>
</constraints>
<color key="tintColor" red="0.98123246431350708" green="0.9420580267906189" blue="0.95548433065414429" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" image="doc" catalog="system" title=""/>
<connections>
<action selector="creataction:" destination="BYZ-38-t0r" eventType="touchUpInside" id="ngc-4k-hUR"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Yle-gG-Mn5">
<rect key="frame" x="162" y="248" width="55" height="48"/>
<color key="backgroundColor" systemColor="systemIndigoColor"/>
<constraints>
<constraint firstAttribute="height" constant="48" id="9na-rb-gjz"/>
<constraint firstAttribute="width" constant="55" id="EFm-fQ-cSh"/>
</constraints>
<color key="tintColor" red="0.98123246431350708" green="0.9420580267906189" blue="0.95548433065414429" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" image="folder" catalog="system"/>
<connections>
<action selector="folderCreate:" destination="BYZ-38-t0r" eventType="touchUpInside" id="mDy-RM-XGn"/>
</connections>
</button>
</subviews>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
<color key="backgroundColor" systemColor="systemYellowColor"/>
<constraints>
<constraint firstItem="INI-KT-HJa" firstAttribute="top" secondItem="TbO-sQ-Fgp" secondAttribute="bottom" constant="102" id="7y9-V0-LbJ"/>
<constraint firstItem="HVW-nF-usG" firstAttribute="centerX" secondItem="6Tk-OE-BBY" secondAttribute="centerX" id="JMw-Hb-Yjq"/>
<constraint firstItem="Yle-gG-Mn5" firstAttribute="centerX" secondItem="TbO-sQ-Fgp" secondAttribute="centerX" id="NlD-mK-ptf"/>
<constraint firstItem="INI-KT-HJa" firstAttribute="top" secondItem="Yle-gG-Mn5" secondAttribute="bottom" constant="32" id="Nvh-RD-lt1"/>
<constraint firstItem="Yle-gG-Mn5" firstAttribute="top" secondItem="TbO-sQ-Fgp" secondAttribute="bottom" constant="22" id="VEd-rD-6Jh"/>
<constraint firstItem="HVW-nF-usG" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" constant="38" id="YaW-3d-fqk"/>
<constraint firstItem="TbO-sQ-Fgp" firstAttribute="top" secondItem="HVW-nF-usG" secondAttribute="bottom" constant="62" id="lAU-wF-7yX"/>
<constraint firstItem="TbO-sQ-Fgp" firstAttribute="centerX" secondItem="HVW-nF-usG" secondAttribute="centerX" constant="-5.5" id="oMA-jI-7Ae"/>
<constraint firstAttribute="bottom" secondItem="INI-KT-HJa" secondAttribute="bottom" id="odi-0K-gmU"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="INI-KT-HJa" secondAttribute="trailing" id="p5j-Kj-dtv"/>
<constraint firstItem="INI-KT-HJa" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" id="wkx-kp-mMe"/>
</constraints>
</view>
<connections>
<outlet property="failname" destination="HVW-nF-usG" id="0lG-o2-YWB"/>
<outlet property="tabelViewFile" destination="INI-KT-HJa" id="meZ-8O-aLK"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-23.188405797101453" y="67.633928571428569"/>
</scene>
</scenes>
<resources>
<image name="doc" catalog="system" width="115" height="128"/>
<image name="folder" catalog="system" width="128" height="97"/>
<systemColor name="systemIndigoColor">
<color red="0.34509803921568627" green="0.33725490196078434" blue="0.83921568627450982" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemYellowColor">
<color red="1" green="0.80000000000000004" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
</resources>
</document>
Loading