Skip to content

Commit

Permalink
"Drop the Debug"
Browse files Browse the repository at this point in the history
  • Loading branch information
b3ll committed Jun 3, 2024
1 parent 20dc389 commit a4f2a83
Show file tree
Hide file tree
Showing 29 changed files with 110 additions and 133 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@
66DFDEF42BBB96310042EE92 /* ReplicatorLayerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66DFDEF32BBB96310042EE92 /* ReplicatorLayerViewController.swift */; };
66DFDEF92BBB96320042EE92 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 66DFDEF82BBB96320042EE92 /* Assets.xcassets */; };
66DFDEFC2BBB96320042EE92 /* Base in Resources */ = {isa = PBXBuildFile; fileRef = 66DFDEFB2BBB96320042EE92 /* Base */; };
66DFDF092BBBBA620042EE92 /* DebugAdjustable in Frameworks */ = {isa = PBXBuildFile; productRef = 66DFDF082BBBBA620042EE92 /* DebugAdjustable */; };
66DFDF092BBBBA620042EE92 /* Adjustable in Frameworks */ = {isa = PBXBuildFile; productRef = 66DFDF082BBBBA620042EE92 /* Adjustable */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
66270C4A2C0D62B000F20019 /* SwiftUIViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftUIViewController.swift; sourceTree = "<group>"; };
66DFDEEC2BBB96310042EE92 /* DebugAdjustableDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DebugAdjustableDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
66DFDEEC2BBB96310042EE92 /* AdjustableDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AdjustableDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
66DFDEEF2BBB96310042EE92 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
66DFDEF12BBB96310042EE92 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
66DFDEF32BBB96310042EE92 /* ReplicatorLayerViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReplicatorLayerViewController.swift; sourceTree = "<group>"; };
66DFDEF82BBB96320042EE92 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
66DFDEFB2BBB96320042EE92 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
66DFDEFD2BBB96320042EE92 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
66DFDF072BBBBA520042EE92 /* DebugAdjustable */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = DebugAdjustable; path = ..; sourceTree = "<group>"; };
66DFDF072BBBBA520042EE92 /* Adjustable */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = Adjustable; path = ..; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
66DFDEE92BBB96310042EE92 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
66DFDF092BBBBA620042EE92 /* DebugAdjustable in Frameworks */,
66DFDF092BBBBA620042EE92 /* Adjustable in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -43,8 +43,8 @@
66DFDEE32BBB96310042EE92 = {
isa = PBXGroup;
children = (
66DFDF072BBBBA520042EE92 /* DebugAdjustable */,
66DFDEEE2BBB96310042EE92 /* DebugAdjustableDemo */,
66DFDF072BBBBA520042EE92 /* Adjustable */,
66DFDEEE2BBB96310042EE92 /* AdjustableDemo */,
66DFDEED2BBB96310042EE92 /* Products */,
66DFDF042BBB96540042EE92 /* Frameworks */,
);
Expand All @@ -53,12 +53,12 @@
66DFDEED2BBB96310042EE92 /* Products */ = {
isa = PBXGroup;
children = (
66DFDEEC2BBB96310042EE92 /* DebugAdjustableDemo.app */,
66DFDEEC2BBB96310042EE92 /* AdjustableDemo.app */,
);
name = Products;
sourceTree = "<group>";
};
66DFDEEE2BBB96310042EE92 /* DebugAdjustableDemo */ = {
66DFDEEE2BBB96310042EE92 /* AdjustableDemo */ = {
isa = PBXGroup;
children = (
66DFDEEF2BBB96310042EE92 /* AppDelegate.swift */,
Expand All @@ -69,7 +69,7 @@
66DFDEFA2BBB96320042EE92 /* LaunchScreen.storyboard */,
66DFDEFD2BBB96320042EE92 /* Info.plist */,
);
path = DebugAdjustableDemo;
path = AdjustableDemo;
sourceTree = "<group>";
};
66DFDF042BBB96540042EE92 /* Frameworks */ = {
Expand All @@ -82,9 +82,9 @@
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
66DFDEEB2BBB96310042EE92 /* DebugAdjustableDemo */ = {
66DFDEEB2BBB96310042EE92 /* AdjustableDemo */ = {
isa = PBXNativeTarget;
buildConfigurationList = 66DFDF002BBB96320042EE92 /* Build configuration list for PBXNativeTarget "DebugAdjustableDemo" */;
buildConfigurationList = 66DFDF002BBB96320042EE92 /* Build configuration list for PBXNativeTarget "AdjustableDemo" */;
buildPhases = (
66DFDEE82BBB96310042EE92 /* Sources */,
66DFDEE92BBB96310042EE92 /* Frameworks */,
Expand All @@ -94,12 +94,12 @@
);
dependencies = (
);
name = DebugAdjustableDemo;
name = AdjustableDemo;
packageProductDependencies = (
66DFDF082BBBBA620042EE92 /* DebugAdjustable */,
66DFDF082BBBBA620042EE92 /* Adjustable */,
);
productName = DebugAdjustableDemo;
productReference = 66DFDEEC2BBB96310042EE92 /* DebugAdjustableDemo.app */;
productName = AdjustableDemo;
productReference = 66DFDEEC2BBB96310042EE92 /* AdjustableDemo.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
Expand All @@ -117,7 +117,7 @@
};
};
};
buildConfigurationList = 66DFDEE72BBB96310042EE92 /* Build configuration list for PBXProject "DebugAdjustableDemo" */;
buildConfigurationList = 66DFDEE72BBB96310042EE92 /* Build configuration list for PBXProject "AdjustableDemo" */;
compatibilityVersion = "Xcode 14.0";
developmentRegion = en;
hasScannedForEncodings = 0;
Expand All @@ -130,7 +130,7 @@
projectDirPath = "";
projectRoot = "";
targets = (
66DFDEEB2BBB96310042EE92 /* DebugAdjustableDemo */,
66DFDEEB2BBB96310042EE92 /* AdjustableDemo */,
);
};
/* End PBXProject section */
Expand Down Expand Up @@ -301,7 +301,7 @@
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 6TK23TLYP7;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = DebugAdjustableDemo/Info.plist;
INFOPLIST_FILE = AdjustableDemo/Info.plist;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
Expand All @@ -311,7 +311,7 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = ca.adambell.DebugAdjustableDemo;
PRODUCT_BUNDLE_IDENTIFIER = ca.adambell.AdjustableDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
Expand All @@ -328,7 +328,7 @@
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 6TK23TLYP7;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = DebugAdjustableDemo/Info.plist;
INFOPLIST_FILE = AdjustableDemo/Info.plist;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
Expand All @@ -338,7 +338,7 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = ca.adambell.DebugAdjustableDemo;
PRODUCT_BUNDLE_IDENTIFIER = ca.adambell.AdjustableDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
Expand All @@ -349,7 +349,7 @@
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
66DFDEE72BBB96310042EE92 /* Build configuration list for PBXProject "DebugAdjustableDemo" */ = {
66DFDEE72BBB96310042EE92 /* Build configuration list for PBXProject "AdjustableDemo" */ = {
isa = XCConfigurationList;
buildConfigurations = (
66DFDEFE2BBB96320042EE92 /* Debug */,
Expand All @@ -358,7 +358,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
66DFDF002BBB96320042EE92 /* Build configuration list for PBXNativeTarget "DebugAdjustableDemo" */ = {
66DFDF002BBB96320042EE92 /* Build configuration list for PBXNativeTarget "AdjustableDemo" */ = {
isa = XCConfigurationList;
buildConfigurations = (
66DFDF012BBB96320042EE92 /* Debug */,
Expand All @@ -370,9 +370,9 @@
/* End XCConfigurationList section */

/* Begin XCSwiftPackageProductDependency section */
66DFDF082BBBBA620042EE92 /* DebugAdjustable */ = {
66DFDF082BBBBA620042EE92 /* Adjustable */ = {
isa = XCSwiftPackageProductDependency;
productName = DebugAdjustable;
productName = Adjustable;
};
/* End XCSwiftPackageProductDependency section */
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "66DFDEEB2BBB96310042EE92"
BuildableName = "DebugAdjustableDemo.app"
BlueprintName = "DebugAdjustableDemo"
ReferencedContainer = "container:DebugAdjustableDemo.xcodeproj">
BuildableName = "AdjustableDemo.app"
BlueprintName = "AdjustableDemo"
ReferencedContainer = "container:AdjustableDemo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand All @@ -45,9 +45,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "66DFDEEB2BBB96310042EE92"
BuildableName = "DebugAdjustableDemo.app"
BlueprintName = "DebugAdjustableDemo"
ReferencedContainer = "container:DebugAdjustableDemo.xcodeproj">
BuildableName = "AdjustableDemo.app"
BlueprintName = "AdjustableDemo"
ReferencedContainer = "container:AdjustableDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
Expand All @@ -62,9 +62,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "66DFDEEB2BBB96310042EE92"
BuildableName = "DebugAdjustableDemo.app"
BlueprintName = "DebugAdjustableDemo"
ReferencedContainer = "container:DebugAdjustableDemo.xcodeproj">
BuildableName = "AdjustableDemo.app"
BlueprintName = "AdjustableDemo"
ReferencedContainer = "container:AdjustableDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// AppDelegate.swift
// DebugAdjustableDemo
// AdjustableDemo
//
// Created by Adam Bell on 4/1/24.
//
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "DebugAdjustable.png",
"filename" : "AdjustableLogo.png",
"idiom" : "universal"
}
],
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//
// ViewController.swift
// DebugAdjustableDemo
// AdjustableDemo
//
// Created by Adam Bell on 4/1/24.
//

import DebugAdjustable
import Adjustable
import UIKit

public let MotionBlue = UIColor(red: 0.47, green: 0.80, blue: 0.99, alpha: 1.00)
Expand All @@ -14,22 +14,22 @@ import Combine

class DemoView: UIView {

@DebugAdjustable(24...144.0, title: "square.size") var squareSize: Double = 44
@Adjustable(24...144.0, title: "square.size") var squareSize: Double = 44

@DebugAdjustable(0.0...100.0) var sourceCopyCount: Double = 0.0
@DebugAdjustable(-200...200.0) var sourceInstanceTransformX: Double = 0.0
@DebugAdjustable(-200...200.0) var sourceInstanceTransformY: Double = 0.0
@Adjustable(0.0...100.0) var sourceCopyCount: Double = 0.0
@Adjustable(-200...200.0) var sourceInstanceTransformX: Double = 0.0
@Adjustable(-200...200.0) var sourceInstanceTransformY: Double = 0.0

@DebugAdjustable(0.0...100.0) var copyCopyCount: Double = 0.0
@DebugAdjustable(-200...200.0) var copyInstanceTransformX: Double = 0.0
@DebugAdjustable(-200...200.0) var copyInstanceTransformY: Double = 0.0
@Adjustable(0.0...100.0) var copyCopyCount: Double = 0.0
@Adjustable(-200...200.0) var copyInstanceTransformX: Double = 0.0
@Adjustable(-200...200.0) var copyInstanceTransformY: Double = 0.0

@DebugAdjustable(-200...200.0, valueChanged: { enclosingSelf, value in
@Adjustable(-200...200.0, valueChanged: { enclosingSelf, value in
print(enclosingSelf)
print(value)
}) var testPrint: Double = 0.0

@DebugAdjustable(-10...10.0) var somePublishedValue: Double = 0.0
@Adjustable(-10...10.0) var somePublishedValue: Double = 0.0

let adjustableSquare = CALayer()

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// SceneDelegate.swift
// DebugAdjustableDemo
// AdjustableDemo
//
// Created by Adam Bell on 4/1/24.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
//
// SwiftUIViewController.swift
// DebugAdjustableDemo
// AdjustableDemo
//
// Created by Adam Bell on 6/2/24.
//

import DebugAdjustable
import Adjustable
import SwiftUI

class Model: ObservableObject {

@DebugAdjustable(0.0...Double.pi) var rotation: Double = 0.0
@DebugAdjustable(0.0...2.0) var response: Double = 0.3
@DebugAdjustable(0.0...1.0) var dampingFraction: Double = 1.0
@Adjustable(0.0...Double.pi) var rotation: Double = 0.0
@Adjustable(0.0...2.0) var response: Double = 0.3
@Adjustable(0.0...1.0) var dampingFraction: Double = 1.0

}

Expand All @@ -23,7 +23,7 @@ struct SwiftUIView: View {
@State var pressed: Bool = false

var body: some View {
Image("DebugAdjustable")
Image("AdjustableLogo")
.resizable()
.aspectRatio(contentMode: .fit)
.padding(24.0)
Expand All @@ -36,16 +36,16 @@ struct SwiftUIView: View {
.scaleEffect(pressed ? CGSize(width: 0.8, height: 0.8) : CGSize(width: 1.0, height: 1.0))
.gesture(
DragGesture(minimumDistance: 0)
.onChanged({ _ in
.onChanged { _ in
withAnimation(.spring(response: model.response, dampingFraction: model.dampingFraction)) {
self.pressed = true
}
})
.onEnded({ _ in
}
.onEnded { _ in
withAnimation(.spring(response: model.response, dampingFraction: model.dampingFraction)) {
self.pressed = false
}
})
}
)
.scaleEffect(CGSize(width: 0.8, height: 0.8))
}
Expand Down

This file was deleted.

Binary file not shown.
8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
import PackageDescription

let package = Package(
name: "DebugAdjustable",
name: "Adjustable",
platforms: [
.iOS(.v17),
.tvOS(.v17),
.macOS(.v14),
],
products: [
.library(
name: "DebugAdjustable",
targets: ["DebugAdjustable"]),
name: "Adjustable",
targets: ["Adjustable"]),
],
dependencies: [
.package(url: "https://github.com/b3ll/Motion", .upToNextMajor(from: "0.1.5")),
],
targets: [
.target(
name: "DebugAdjustable",
name: "Adjustable",
dependencies: ["Motion"]),
],
swiftLanguageVersions: [.v5]
Expand Down
Loading

0 comments on commit a4f2a83

Please sign in to comment.