One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| import PlaygroundSupport | |
| import Foundation | |
| import Combine | |
| // MARK: - Network Controller | |
| protocol NetworkControllerProtocol: class { | |
| typealias Headers = [String: Any] | |
| func get<T>(type: T.Type, | |
| url: URL, |
| import UIKit | |
| #if canImport(SwiftUI) && DEBUG | |
| import SwiftUI | |
| struct UIViewControllerPreview<ViewController: UIViewController>: UIViewControllerRepresentable { | |
| let viewController: ViewController | |
| init(_ builder: @escaping () -> ViewController) { | |
| viewController = builder() | |
| } |
| #!/bin/bash | |
| # Adapted from http://stackoverflow.com/questions/24039470/xcode-6-ios-creating-a-cocoa-touch-framework-architectures-issues/26691080#26691080 | |
| # and https://gist.github.com/cromandini/1a9c4aeab27ca84f5d79 | |
| # Create a new aggregate target. | |
| # For the automatically generated scheme, change its build config to "release". | |
| # Ensure this target's "product name" build setting matches the framework's. | |
| # Add a run script with `source "${PROJECT_DIR}/path_to_this_script` |
| // | |
| // SCNVector3+MathUtils.swift | |
| // | |
| // Created by Jeremy Conkin on 4/26/16. | |
| // | |
| import SceneKit | |
| /** | |
| Add two vectors |
Here's my own list of the interesting stuff announced during this year's WWDC, collected from the keynotes, various Apple docs, blog posts and tweets.
If you're planning to watch the videos, I really recommend this Mac app that helps you download and watch them: https://github.com/insidegui/WWDC.
http://www.apple.com/osx/elcapitan-preview/
| // Thanks to http://www.labs.saachitech.com/2012/10/23/pdf-generation-using-uiprintpagerenderer | |
| // Note: including images in the HTML won't work, see here: | |
| // https://github.com/nyg/HTMLWithImagesToPDF | |
| import UIKit | |
| // 1. Create a print formatter | |
| let html = "<b>Hello <i>World!</i></b>" | |
| let fmt = UIMarkupTextPrintFormatter(markupText: html) |
| import Foundation | |
| extension String | |
| { | |
| var length: Int { | |
| get { | |
| return countElements(self) | |
| } | |
| } | |
| // | |
| // NSImage+Retina.h | |
| // | |
| // Created by Levi Nunnink on 3/11/14. | |
| // | |
| #import <Cocoa/Cocoa.h> | |
| @interface NSImage (Retina) |