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
import Foundation | |
public extension UICollectionView { | |
/** | |
Register nibs faster by passing the type - if for some reason the `identifier` is different then it can be passed | |
- Parameter type: UICollectionView.Type | |
- Parameter identifier: String? | |
*/ | |
func registerCell(type: UICollectionViewCell.Type, identifier: String? = nil) { | |
let cellId = String(describing: type) |
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
var layers = [[String:Any]]() //Array | |
// Note:- Filter key which has currenVersion exists and also status key true | |
let currenVersion = UserDefaults.standard.value(forKey: udCurrentVersion) as? Int ?? 0 | |
var temp = layers.filter { objfilter in | |
if let versions = objfilter["versions"] as? [String] | |
{ | |
return (versions.contains(String(currenVersion)) || versions.contains("1,2") || versions.contains("2,1")) ? (objfilter["status"] as? Bool ?? false) : false | |
} | |
else |
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
import UIKit | |
import GoogleMaps | |
import GooglePlaces | |
class ViewController: UIViewController,CLLocationManagerDelegate { | |
@IBOutlet weak var mapView: GMSMapView! | |
var coordinates: [CLLocationCoordinate2D] = [] | |
var polygonPath = GMSPolyline() | |
var bounds = GMSCoordinateBounds() |
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
// Datatype specifier | |
enum DataType: Int { | |
case Other = 0 // This can be string | |
case Number = 1 | |
case Email = 2 | |
} | |
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
let arrayOfTuples = [(0, 1), (0, 1), (0, 1), (0, 1), (0, 1), (0, 1), (0, 1), (0, 1), (0, 1), (0, 1)] | |
let flattenedArray = arrayOfTuples.flatMap{ [$0.0, $0.1] } | |
security find-generic-password -ga WIFI NAME | |
https://developer.usebutton.com/guides/merchants/universal-links | |
https://johncodeos.com/how-to-add-uicollectionview-inside-uitableviewcell-using-swift/ | |
https://github.com/johncodeos-blog |
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
{ | |
"status": 1, | |
"message": "درخواست شما با موفقیت انجام شد", | |
"result": { | |
"ip_location": { | |
"id": "4534691", | |
"ip": "196.52.70.196", | |
"continent_code": "NA", | |
"continent_name": "North America", | |
"country_code2": "US", |
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
https://www.installonair.com/ | |
https://www.diawi.com/ |
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
git init | |
git add . | |
git commit -m "Initial project setup" | |
git remote add origin urlProject // urlProject is url of project u want to add | |
git push -u origin master // git push -f origin master |
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
Swift - https://blckbirds.com/wp-content/uploads/2020/02/SwiftProgramming1.0.pdf | |
SwiftUI - https://blckbirds.com/swiftui-tutorials/ |
NewerOlder