This file contains hidden or 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
| // | |
| // ViewController.swift | |
| // n | |
| // | |
| // Created by Ayoub Alrshidi on 19/04/1440 AH. | |
| // Copyright © 1440 Ayoub Alrshidi. All rights reserved. | |
| // | |
| import UIKit | |
| import SwiftyJSON |
This file contains hidden or 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
| { | |
| "status": "ok", | |
| "count": 3, | |
| "count_total": 3, | |
| "pages": 1, | |
| "posts": [ | |
| { | |
| "id": 66, | |
| "type": "post", | |
| "slug": "my-fuckin", |
This file contains hidden or 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
| extension UIViewController { | |
| func hideKeyboardWhenTappedAround() { | |
| let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(UIViewController.dismissKeyboard)) | |
| tap.cancelsTouchesInView = false | |
| view.addGestureRecognizer(tap) | |
| } | |
| func dismissKeyboard() { | |
| view.endEditing(true) | |
| } | |
| } |
This file contains hidden or 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
| DispatchQueue.main.asyncAfter(deadline: .now() + 2) { exit(0); | |
| } |
This file contains hidden or 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
| // | |
| // ViewController.swift | |
| // NLM | |
| // | |
| // Created by Ayoub Alrshidi on 28/03/1440 AH. | |
| // Copyright © 1440 Ayoub Alrshidi. All rights reserved. | |
| // | |
| import UIKit | |
| import WebKit |
This file contains hidden or 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
| { | |
| "Title": "Guardians of the Galaxy Vol. 2", | |
| "Year": "2017", | |
| "Rated": "PG-13", | |
| "Released": "05 May 2017", | |
| "Runtime": "136 min", | |
| "Genre": "Action, Adventure, Comedy, Sci-Fi", | |
| "Director": "James Gunn", | |
| "Writer": "James Gunn, Dan Abnett (based on the Marvel comics by), Andy Lanning (based on the Marvel comics by), Steve Englehart (Star-Lord created by), Steve Gan (Star-Lord created by), Jim Starlin (Gamora and Drax created by), Stan Lee (Groot created by), Larry Lieber (Groot created by), Jack Kirby (Groot created by), Bill Mantlo (Rocket Raccoon created by), Keith Giffen (Rocket Raccoon created by), Steve Gerber (Howard the Duck created by), Val Mayerik (Howard the Duck created by)", | |
| "Actors": "Chris Pratt, Zoe Saldana, Dave Bautista, Vin Diesel", |
This file contains hidden or 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
| { | |
| "actors": [ | |
| { | |
| "name": "46", | |
| "image": "https://www.wallpaperup.com/uploads/wallpapers/2012/08/20/11431/87423363ccf5d1478cfc983ed093e0c0-700.jpg" | |
This file contains hidden or 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
| background Custom 1 | |
| ----------------------- | |
| let backgroundImageView = UIImageView() | |
| func setBackground() { | |
| view.addSubview(backgroundImageView) | |
| backgroundImageView.translatesAutoresizingMaskIntoConstraints = false |
This file contains hidden or 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
| { | |
| "actors": [ | |
| { | |
| "name": "The Merciless", | |
| "Data8": "جاي هو سجين يتمتع بسلطة العظمى على بقية السجناء، وهو من يضع القواعد لهم، كذلك يُعد جاي هو الرجل الثاني بعصابة إجرامية خارج السجن، ولديه ما يكفي من الطموح ليسعى لنيل المركز الأول بمجرد إطلاق سراحه. يوماً ما، قابل جاي هو سجيناً جديداً يُدعى هيون سو، وهو لا يتبع قواعد السجن ولا يخضع لأحد.", | |
| "Data3dd": "Rating: 6.7/10", | |
| "DataNArab": "الاسم بالعربي :عديم الرحمة", | |
| "DataNO3": "النوع : اكشن - جريمة - درامي", | |
| "DataBLD": "البلد المنتج :كوريا الجنوبية", |
This file contains hidden or 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
| { | |
| "actors": [ | |
| { | |
| "name": "Come and Hug Me", | |
| "Data8": "تدور هذه الدراما حول رجل وامرأه مضطربان عاطفياً بسبب جريمة قتل حدثت في ماضيهما وتسببت في تشابك قدريهما، يحاولان معاً التغلٌّب على تحديات الحياة التي لا مفر منها.", | |
| "Data3dd": "عدد الحلقات 16 حلقة", | |
| "DataNArab": "الاسم بالعربي تعالي و عانقيني", | |
| "DataNO3": "النوع : غموض - كوميدي - ميلودراما", |