Skip to content

Commit

Permalink
Add modules (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii authored Jul 15, 2024
1 parent 67d2eee commit 3ca1e70
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 90 deletions.
8 changes: 7 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PackageDescription
let package = Package(
name: "SwiftUISupport",
platforms: [
.iOS(.v14),
.iOS(.v15),
.macOS(.v10_15),
.watchOS(.v6),
.tvOS(.v13),
Expand All @@ -17,6 +17,9 @@ let package = Package(
targets: ["SwiftUISupport"]
),
.library(name: "SwiftUISupportSizing", targets: ["SwiftUISupportSizing"]),
.library(name: "SwiftUISupportLayout", targets: ["SwiftUISupportLayout"]),
.library(name: "SwiftUISupportBackport", targets: ["SwiftUISupportBackport"]),
.library(name: "SwiftUISupportDescribing", targets: ["SwiftUISupportDescribing"]),
.library(name: "SwiftUISupportGeometryEffect", targets: ["SwiftUISupportGeometryEffect"])
],
dependencies: [
Expand All @@ -29,7 +32,10 @@ let package = Package(
"SwiftUISupportGeometryEffect"
]
),
.target(name: "SwiftUISupportDescribing"),
.target(name: "SwiftUISupportBackport"),
.target(name: "SwiftUISupportSizing"),
.target(name: "SwiftUISupportLayout"),
.target(name: "SwiftUISupportGeometryEffect"),
.testTarget(
name: "SwiftUISupportTests",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,3 @@ public struct HostingEdge<Content: View>: UIViewControllerRepresentable {

}

public struct VisualEffect: UIViewRepresentable {

let style: UIBlurEffect.Style

public init(style: UIBlurEffect.Style) {
self.style = style
}

public func makeUIView(context: Context) -> UIVisualEffectView {
return UIVisualEffectView(effect: UIBlurEffect(style: style))
}

public func updateUIView(_ uiView: UIVisualEffectView, context: Context) {

}
}

72 changes: 0 additions & 72 deletions Sources/SwiftUISupport/Components/TimelineView.swift

This file was deleted.

20 changes: 20 additions & 0 deletions Sources/SwiftUISupportBackport/VisualEffect.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import SwiftUI
import UIKit

public struct VisualEffect: UIViewRepresentable {

let style: UIBlurEffect.Style

public init(style: UIBlurEffect.Style) {
self.style = style
}

public func makeUIView(context: Context) -> UIVisualEffectView {
return UIVisualEffectView(effect: UIBlurEffect(style: style))
}

public func updateUIView(_ uiView: UIVisualEffectView, context: Context) {

}
}

0 comments on commit 3ca1e70

Please sign in to comment.