Skip to content

Instantly share code, notes, and snippets.

Cory D. Wiles kwylez

Block or report user

Report or block kwylez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View SOIntent.plist
<?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>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>SignificantOtherSiriIntent</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
View sample_iap_receipt.json
{
"status": 0,
"environment": "Sandbox",
"receipt": {
"receipt_type": "ProductionSandbox",
"adam_id": 0,
"app_item_id": 0,
"bundle_id": "com.example.app",
"application_version": "1950",
"download_id": 0,
View fetch-cloudkit-share.swift
public func fetchShareURL(_ callback: @escaping ((_ url: URL?) -> Void)) -> Void {
if let localRecordZoneID: CKRecordZoneID = SOUser.localICloudConversationRecordID?.zoneID {
let predicate: NSPredicate = NSPredicate(format: "TRUEPREDICATE")
let query: CKQuery = CKQuery(recordType: CloudKitConverationRecordTypeName, predicate: predicate)
let cloudkitController: CloudKitController = CloudKitController(scope: .private)
cloudkitController.perform(query, inZoneWith: localRecordZoneID, completionHandler: {results, error in
@kwylez
kwylez / GHDark.dvtcolortheme
Created Mar 15, 2017
Xcode Sublime Text Theme
View GHDark.dvtcolortheme
<?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>DVTConsoleDebuggerInputTextColor</key>
<string>0 0 0 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Menlo-Bold - 11.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0 0 0 1</string>
View ContextLabel.swift
//
// ContextLabel.swift
// ContextLabel
//
// Created by Cory D. Wiles
// Copyright (c) 2017 Cory D. Wiles. All rights reserved.
//
import Foundation
import UIKit
@kwylez
kwylez / EXIFImage-playground.swift
Created Feb 1, 2017
Modifying EXIF Data with Swift 3
View EXIFImage-playground.swift
//: Playground - noun: a place where people can play
import UIKit
import ImageIO
import MobileCoreServices
let TEST_IMAGE: String = "replace.jpg"
let beach: UIImage = UIImage(named: TEST_IMAGE)!
let imageData: Data = UIImageJPEGRepresentation(beach, 1)!
View double-stroke-animation.swift
//: Playground - noun: a place where people can play
import UIKit
import PlaygroundSupport
import XCPlayground
class AnimatedView: UIView {
let rightLayer: CAShapeLayer = CAShapeLayer()
@kwylez
kwylez / CloudKitController.swift
Created Sep 18, 2016
Example of showing how to use CKDatabaseScope
View CloudKitController.swift
import CloudKit
public enum CloudKitError: Error {
case general(String)
case emptyresult(String)
}
public enum CloudKitResult<T, ResultError: Error> {
case success(T)
case failure(ResultError)
View cloudkit-swift-3-error.swift
import Foundation
import CloudKit
public enum CloudKitError: Error {
case general(String)
}
public enum CloudKitResult<T, ResultError: Error> {
case success(T)
case failure(ResultError)
View RZLImageVIew.swift
//
// UserProfileImageView.swift
// Rezli
//
// Created by Cory D. Wiles on 7/27/16.
// Copyright © 2016 Rezli. All rights reserved.
//
import Foundation
You can’t perform that action at this time.