Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix macOS compatibility #68

Merged
merged 2 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ let package = Package(
name: "Puredux",
platforms: [
.iOS(.v13),
.macOS(.v10_15)
.macOS(.v10_15),
.tvOS(.v12),
.watchOS(.v7)

],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
Expand Down
7 changes: 6 additions & 1 deletion Sources/Puredux/UIKit/UIKitBindings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@
// Created by Sergey Kazakov on 26/08/2024.
//

import Dispatch
import Foundation

#if canImport(UIKit)
import UIKit
import SwiftUI

extension UIViewController: UIStateObserver { }

extension UIView: UIStateObserver { }

#endif

public protocol UIStateObserver: AnyObject { }

extension UIStateObserver {
Expand Down
8 changes: 8 additions & 0 deletions Sources/Puredux/UIKit/UIStateObserver.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//
// File.swift
//
//
// Created by Sergey Kazakov on 03/09/2024.
//

import Foundation