Skip to content

Commit

Permalink
Add implementation (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii authored May 6, 2023
1 parent 85caec7 commit 4534507
Show file tree
Hide file tree
Showing 6 changed files with 458 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "SwiftUISnapDraggingModifier"
BuildableName = "SwiftUISnapDraggingModifier"
BlueprintName = "SwiftUISnapDraggingModifier"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "SwiftUISnapDraggingModifier"
BuildableName = "SwiftUISnapDraggingModifier"
BlueprintName = "SwiftUISnapDraggingModifier"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "SwiftUISnapDraggingModifier"
BuildableName = "SwiftUISnapDraggingModifier"
BlueprintName = "SwiftUISnapDraggingModifier"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
Expand Down
23 changes: 23 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"pins" : [
{
"identity" : "swiftui-gesture-velocity",
"kind" : "remoteSourceControl",
"location" : "https://github.com/FluidGroup/swiftui-gesture-velocity",
"state" : {
"revision" : "9c83f8995f9e5efc29db2fca4b9ff058283f1603",
"version" : "1.0.0"
}
},
{
"identity" : "swiftui-support",
"kind" : "remoteSourceControl",
"location" : "https://github.com/FluidGroup/swiftui-support",
"state" : {
"revision" : "8ef53190c33bd345e7a95ef504dafe0f85ad9c4d",
"version" : "0.4.1"
}
}
],
"version" : 2
}
21 changes: 13 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,28 @@ import PackageDescription

let package = Package(
name: "swiftui-snap-dragging-modifier",
platforms: [.iOS(.v13)],
platforms: [.iOS(.v14)],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "SnapDraggingModifier",
targets: ["SnapDraggingModifier"]
name: "SwiftUISnapDraggingModifier",
targets: ["SwiftUISnapDraggingModifier"]
)
],
dependencies: [
.package(url: "https://github.com/FluidGroup/swiftui-gesture-velocity", from: "1.0.0"),
.package(url: "https://github.com/FluidGroup/swiftui-support", from: "0.4.0")
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "SnapDraggingModifier"
name: "SwiftUISnapDraggingModifier",
dependencies: [
.product(name: "SwiftUIGestureVelocity", package: "swiftui-gesture-velocity"),
.product(name: "SwiftUISupport", package: "swiftui-support"),
]
),
.testTarget(
name: "SnapDraggingModifierTests",
dependencies: ["SnapDraggingModifier"]
dependencies: ["SwiftUISnapDraggingModifier"]
),
]
)

This file was deleted.

Loading

0 comments on commit 4534507

Please sign in to comment.