Skip to content

Instantly share code, notes, and snippets.

View kayoslab's full-sized avatar
:electron:
Focusing

Simon C. Krüger kayoslab

:electron:
Focusing
View GitHub Profile
@kayoslab
kayoslab / TableViewController+Sort.swift
Last active May 31, 2021 17:59
Reorder UITableViewCells and modify the underlying CoreData Model
class TableViewController: UITableViewController {
override func viewDidLoad() {
super.viewDidLoad()
tableView.delegate = self
tableView.dataSource = self
navigationItem.rightBarButtonItem = editButtonItem
}
@kayoslab
kayoslab / CLLocationCoordinate2D+Range.swift
Last active March 4, 2017 19:51
CLLocationCoordinate2D Extension to get a CoordinateRange struct within a given maximum Distance in Swift 3.0
/*
* Copyright (C) kayoslabs - All Rights Reserved
* Description from Jan Philip Matuschek
* (http://janmatuschek.de/LatitudeLongitudeBoundingCoordinates)
* Written by kayoslabs, March 2017
*/
import Foundation
import MapKit