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.
// | |
// GifExporter.swift | |
// Flipbook | |
// | |
// Created by Matthias Buchetics on 02.12.20. | |
// Copyright © 2020 Tinkado. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
import Foundation | |
import UIKit | |
import DataSource | |
class TemplateViewController: UIViewController { | |
// MARK: Interface | |
var onSubmit: ((String) -> Void)! // ! für required closures, ? für wirklich optionale | |
var onCancel: (() -> Void)! |
import SwiftUI | |
let LINE_LENGTH: Double = 500.0 | |
let N = 720 | |
let LINES = 18 | |
let WAVES: Double = 18.0 | |
let WAVE_HEIGHT: Double = 20 | |
let SPACING: Double = 27.0 | |
let CURL_AMOUNT: Double = 12.0 |
import SwiftUI | |
struct ContentView: View { | |
let items = ["a", "b", "c"] | |
var body: some View { | |
NavigationView { | |
List { | |
ForEach(items, id: \.self) { item in | |
NavigationLink(item, destination: DetailView()) |
import Foundation | |
import CoreGraphics | |
import UIKit | |
extension UIBezierPath { | |
convenience init?(quadCurve points: [CGPoint]) { | |
guard points.count > 1 else { return nil } | |
self.init() |
import Foundation | |
let json = | |
""" | |
{ | |
"name": "Matthias", | |
"birthday": "2017-03-22" | |
} | |
""" |
struct User: Codable { | |
var name: String | |
var email: String | |
var id: String | |
var metadata: [String: MetadataType] | |
enum CodingKeys: String, CodingKey { | |
case name, email, id, metadata | |
} | |
} |
enum JSON: Decodable { | |
case bool(Bool) | |
case double(Double) | |
case string(String) | |
indirect case array([JSON]) | |
indirect case dictionary([String: JSON]) | |
init(from decoder: Decoder) throws { | |
if let container = try? decoder.container(keyedBy: JSONCodingKeys.self) { | |
self = JSON(from: container) |
// | |
// QRCodeScannerViewController.swift | |
// | |
// Created by Matthias Buchetics on 09/09/16. | |
// Copyright © 2016 Matthias Buchetics. All rights reserved. | |
// | |
import AVFoundation | |
import UIKit |