Skip to content

Commit

Permalink
Uninstall Introspect for SwiftUI
Browse files Browse the repository at this point in the history
Copy the code of Introsect for SwiftUI to fix an issue locally, so no
dependency is needed.
  • Loading branch information
hugehoge committed Feb 19, 2022
1 parent a0f46a8 commit 307a2ca
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 44 deletions.
16 changes: 0 additions & 16 deletions Package.resolved

This file was deleted.

10 changes: 2 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,11 @@ let package = Package(
targets: ["Snappable"]
),
],
dependencies: [
.package(
name: "Introspect",
url: "https://github.com/siteline/SwiftUI-Introspect.git",
from: "0.1.3"
),
],
dependencies: [],
targets: [
.target(
name: "Snappable",
dependencies: ["Introspect"],
dependencies: [],
path: "Sources"
),
.testTarget(
Expand Down
2 changes: 0 additions & 2 deletions Snappable.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ Pod::Spec.new do |s|
s.ios.deployment_target = '14.0'
s.swift_versions = ['5.3', '5.4', '5.5']
s.source_files = 'Sources/**/*.swift'

s.dependency 'Introspect', '~> 0.1.3'
end
16 changes: 0 additions & 16 deletions Snappable.xcworkspace/xcshareddata/swiftpm/Package.resolved

This file was deleted.

2 changes: 0 additions & 2 deletions Sources/Internal/ViewModifiers/SnappableModifier.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import SwiftUI

import Introspect

internal struct SnappableModifier: ViewModifier {
private let snapAlignment: SnapAlignment
private let snapMode: SnapMode
Expand Down

0 comments on commit 307a2ca

Please sign in to comment.