Swiftpack.co - richimf/MultiplatformTypes as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by richimf.
richimf/MultiplatformTypes 0.4.3
Types for UIKit & AppKit
⭐️ 2
🕓 3 years ago
iOS macOS tvOS
.package(url: "https://github.com/richimf/MultiplatformTypes.git", from: "0.4.3")

MultiplatformTypes

UIKit and AppKit typealiases with unified functions for iOS, tvOS and macOS.

  • MPImage = UIImage & NSImage

  • MPColor = UIColor & NSColor

  • MPView = UIView & NSView

  • MPViewController = UIViewController & NSViewController

  • MPViewRepresentable = UIViewRepresentable & NSViewRepresentable

    • Use as protocol ViewRepresentable
  • MPViewControllerRepresentable = UIViewControllerRepresentable & NSViewControllerRepresentable

    • Use as protocol ViewControllerRepresentable
  • MPHostingView = UIHostingView & NSHostingView

  • MPHostingController = UIHostingController & NSHostingController

  • MPScrollView = UIScrollView & NSScrollView

  • MPBezierPath = UIBezierPath & NSBezierPath

  • MPVisualEffectView = UIVisualEffectView & NSVisualEffectView

    • Use in SwiftUI as BlurView() or .backgroundBlur(cornerRadius:)

GitHub

link
Stars: 2
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics