This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------------------------------------------------ | |
// The SwiftUI Lab: Advanced SwiftUI Animations | |
// https://swiftui-lab.com/swiftui-animations-part1 (Animating Paths) | |
// https://swiftui-lab.com/swiftui-animations-part2 (GeometryEffect) | |
// https://swiftui-lab.com/swiftui-animations-part3 (AnimatableModifier) | |
//------------------------------------------------------------------------ | |
import SwiftUI | |
struct ContentView: View { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import OpenAPIKitCore | |
import Foundation | |
extension JSONSchema { | |
public typealias RefOrSelf = Either<JSONReference<JSONSchema>, JSONSchema> | |
public typealias RefOrSelf_Array = [JSONSchema.RefOrSelf] | |
} | |
extension OpenAPI.Header { | |
public typealias RefOrSelf = Either<JSONReference<OpenAPI.Header>, OpenAPI.Header> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a failing test: | |
func test_webhooks_encode() throws { | |
let op = OpenAPI.Operation(responses: [:]) | |
let document = OpenAPI.Document( | |
info: .init(title: "API", version: "1.0"), | |
servers: [], | |
paths: [:], | |
webhooks: [ | |
"webhook-test": .init(get: op, put: op, post: op, options: op, head: op, patch: op, trace: op) | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// StoryboardParser.swift | |
// StoryboardReader | |
// | |
// Created by Mihaela Mihaljevic Jakic on 07/06/2020. | |
// Copyright © 2020 Mihaela Mihaljevic Jakic. All rights reserved. | |
// | |
import Foundation | |
import IBDecodable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
//Example from: | |
//https://github.com/kitecomp/archive-example | |
//wrapped into a small UIView category | |
//https://gist.github.com/mihaelamj/79878ba7b7881a12f1652c113adcf5d8 | |
public extension UIView { | |
public func loadCAARAnimation(named: String, scale : CGFloat = 1.0) -> CALayer? { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension String : CodingKey { | |
public var stringValue: String { | |
return self | |
} | |
public init?(stringValue: String) { | |
self.init(stringLiteral: stringValue) | |
} | |
public var intValue: Int? { | |
return nil | |
} |