Core Image Filters
iOS 13 has 218 filters.
New Filters in iOS 13
- CIDocumentEnhancer
- CIGaborGradients
- CIKeystoneCorrectionCombined
- CIKeystoneCorrectionHorizontal
- CIKeystoneCorrectionVertical
import Foundation | |
/// A type that can be initialized from a string value. | |
/// | |
public protocol StringInitable { | |
/// Initialize the object with a string. | |
/// | |
/// - Note: This operation can fail if the string is not valid for this object type. | |
/// | |
init?(_ string: String) |
========================= | |
Color Absolute Difference | |
========================= | |
[Availability] | |
iOS: 14 | |
macOS: 11.0 | |
[Categories] | |
Color Adjustment, Video, Interlaced, Non-Square Pixels, Still Image, Built-In |
import Foundation | |
import CoreImage | |
struct FilterInput { | |
struct ValueRange { | |
let minValue: Float | |
let maxValue: Float | |
let sliderMin: Float? | |
let sliderMax: Float? |
import UIKit | |
import NaturalLanguage | |
import PlaygroundSupport | |
//: Your secret API key from `https://dictionaryapi.com` goes here. | |
//: THIS WON'T WORK UNLESS YOU GET A KEY. | |
let thesaurusKey = "" | |
//: The string you want to work on. | |
var testString = "The bright sun set behind the green hills. Thin clouds streaked the red sky." |
import UIKit | |
import Combine | |
/// This class wraps a `CADisplayLink` and exposes its callback as a Combine Publisher. | |
/// | |
class CombineDisplayLink { | |
/// An object that includes timing information about the screen refresh. | |
/// | |
struct Tick { |
Transitions from one image to another of a differing dimensions by unfolding.
protocol AnalyticsBackEnd { | |
static func log(_ name: String) | |
} | |
extension Analytics: AnalyticsBackEnd {} |
extension UIImage.Orientation { | |
/// Get the equivalent `CGImagePropertyOrientation` enum case. | |
var cgOrientation: CGImagePropertyOrientation { | |
switch self { | |
case .up: return .up | |
case .down: return .down | |
case .left: return .left | |
case .right: return .right | |
case .upMirrored: return .upMirrored | |
case .downMirrored: return .downMirrored |
//: # Natural Language Framework | |
//: by Josh Sullivan | |
import Swift | |
import NaturalLanguage | |
//: Create a short string to test. | |
let str = "I am the very model of a modern major general! 😎" | |
//: And a longer one. Yay, multi-line String literals! | |
let longStr = """ |