From b4913c91aba4b1fee891762048fd732053289cd1 Mon Sep 17 00:00:00 2001 From: fduroni Date: Fri, 15 Jul 2022 14:08:58 +0200 Subject: [PATCH] Fixing demo imports :fire: --- DemoSPM/ViewController.swift | 8 +++---- .../xcshareddata/swiftpm/Package.resolved | 24 +++++++++---------- Source/RangeUISliderDelegateEvents.swift | 1 + 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/DemoSPM/ViewController.swift b/DemoSPM/ViewController.swift index 8d39f66..0db686d 100644 --- a/DemoSPM/ViewController.swift +++ b/DemoSPM/ViewController.swift @@ -76,11 +76,11 @@ class ViewController: UIViewController, RangeUISliderDelegate { ]) } - func rangeChangeFinished(minValueSelected: CGFloat, maxValueSelected: CGFloat, slider: RangeUISlider) { - print("FINISH min: \(minValueSelected) - max: \(maxValueSelected) - identifier: \(slider.identifier)") + func rangeChangeFinished(event: RangeUISliderChangeFinishedEvent) { + print("FINISH min: \(event.minValueSelected) - max: \(event.maxValueSelected) - identifier: \(event.slider.identifier)") } - func rangeIsChanging(minValueSelected: CGFloat, maxValueSelected: CGFloat, slider: RangeUISlider) { - print("min: \(minValueSelected) - max: \(maxValueSelected) - identifier: \(slider.identifier)") + func rangeIsChanging(event: RangeUISliderChangeEvent) { + print("min: \(event.minValueSelected) - max: \(event.maxValueSelected) - identifier: \(event.slider.identifier)") } } diff --git a/RangeUISlider.xcworkspace/xcshareddata/swiftpm/Package.resolved b/RangeUISlider.xcworkspace/xcshareddata/swiftpm/Package.resolved index 933a2cc..e2e947a 100644 --- a/RangeUISlider.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/RangeUISlider.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -1,16 +1,14 @@ { - "object": { - "pins": [ - { - "package": "RangeUISlider", - "repositoryURL": "https://github.com/chicio/RangeUISlider", - "state": { - "branch": "master", - "revision": "1dde11275ed31bb61e0a45d248ac1604ba758815", - "version": null - } + "pins" : [ + { + "identity" : "rangeuislider", + "kind" : "remoteSourceControl", + "location" : "https://github.com/chicio/RangeUISlider", + "state" : { + "branch" : "master", + "revision" : "615b65b91f3b1d45ae24b289f7bebc205359c0fe" } - ] - }, - "version": 1 + } + ], + "version" : 2 } diff --git a/Source/RangeUISliderDelegateEvents.swift b/Source/RangeUISliderDelegateEvents.swift index e40298e..ed6f42c 100644 --- a/Source/RangeUISliderDelegateEvents.swift +++ b/Source/RangeUISliderDelegateEvents.swift @@ -7,6 +7,7 @@ // import Foundation +import CoreGraphics /** A range change event.