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 SwiftUI | |
struct JoystickView: View { | |
@State private var dragPosition: CGPoint? = nil | |
typealias JoystickAction = (CGPoint?) -> Void | |
private var translationAction: JoystickAction? | |
private var gripColor: Color = .white | |
init(_ translationAction: JoystickAction? = nil) { |
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 SwiftUI | |
import Foundation | |
import PlaygroundSupport | |
public enum Orientation { | |
case horizontal | |
case vertical | |
} | |
public struct StackView<Content: View>: 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
// | |
// DateField.swift | |
// | |
// Created by Szymon Lorenz on 22/2/20. | |
// Copyright © 2020 Szymon Lorenz. All rights reserved. | |
// | |
import SwiftUI | |
struct DateTextField: UIViewRepresentable { |
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
// | |
// Created by Szymon Lorenz on 9/11/19. | |
// Copyright © 2019 Szymon Lorenz. All rights reserved. | |
// | |
import Foundation | |
import Combine | |
/// Error localized description | |
enum DataTaskError : Error { |
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 Foundation | |
extension URLResponse { | |
var HTTPResponse: HTTPURLResponse? { | |
return self as? HTTPURLResponse | |
} | |
} |
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
// | |
// PushFromItemAnimator.swift | |
// Between | |
// | |
// Created by Shial on 11/9/18. | |
// Copyright © 2018 Szymon Lorenz Solutions. All rights reserved. | |
// | |
import UIKit |
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 Foundation | |
public class Log { | |
private enum LogType: Int, CustomStringConvertible { | |
public var description: String { | |
switch self { | |
case .verbose: | |
return "[VERBOSE]" | |
case .info: | |
return "[INFO]" |