Skip to content

Commit

Permalink
Introduce UIViewDebug Tools and Address .swiftpm Build Issues on Swif…
Browse files Browse the repository at this point in the history
…tPackageIndex (#1)

* working UIViewDebug tools, and adding more UnitTests

* Add Unit Tests for DSL

* Add unit tests
  • Loading branch information
Adobels authored Sep 20, 2023
1 parent f34eb1f commit e594b60
Show file tree
Hide file tree
Showing 21 changed files with 789 additions and 212 deletions.
92 changes: 0 additions & 92 deletions .swiftpm/xcode/xcshareddata/xcschemes/UIViewDSL.xcscheme

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "UIViewDSL"
BuildableName = "UIViewDSL"
BlueprintName = "UIViewDSL"
BlueprintIdentifier = "UIViewKit"
BuildableName = "UIViewKit"
BlueprintName = "UIViewKit"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
Expand All @@ -28,6 +28,18 @@
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "UIViewKitTests"
BuildableName = "UIViewKitTests"
BlueprintName = "UIViewKitTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -49,9 +61,9 @@
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "UIViewDSL"
BuildableName = "UIViewDSL"
BlueprintName = "UIViewDSL"
BlueprintIdentifier = "UIViewKit"
BuildableName = "UIViewKit"
BlueprintName = "UIViewKit"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
Expand Down
19 changes: 19 additions & 0 deletions Sources/UIViewKit/NSObject+Extensions.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// NSObject+Extensions.swift
//
//
// Created by Blazej SLEBODA on 20/09/2023.
//

import Foundation

public protocol NSObjectExtensions {}; extension NSObject: NSObjectExtensions { }

extension NSObjectExtensions {

@discardableResult
public func apply(_ block: (Self) -> Void) -> Self {
block(self)
return self
}
}
Loading

0 comments on commit e594b60

Please sign in to comment.