Skip to content

Commit

Permalink
Release 0.2.0 (#12)
Browse files Browse the repository at this point in the history
* Create FUNDING.yml (#5)

* Update swift.yml (#7)

* Refactor and Update Slider Animations (#9)

* Refactoring

* Add animation direction change
Refactoring

* Add configurations

* Code refactoring
Update example

* Update example screenshots

* Update README.md

* Update changelog.md

* Minor bug fix;

* Add Vertical direction (#11)

* Refactoring

* Add animation direction change
Refactoring

* Add configurations

* Code refactoring
Update example

* Update example screenshots

* Update README.md

* Update changelog.md

* Minor bug fix;

* - Added vertical direction support (`bottomToTop`, `topToBottom`) for the slider, complementing the existing horizontal orientation.
- Implemented new `TrackConfiguration` and `ThumbConfiguration` structures to allow detailed customization of the slider's appearance and behavior.
- Developed and documented the `SliderDelegate` protocol and associated methods for handling slider events.
- Implemented a documentation system using DocC, providing detailed guides and usage examples for the `Slider` class.
- Added Swift-style documentation comments for all new and updated slider components.

- Updated methods to enhance performance and reduce code duplication in the `Slider` class.
- Modified the animation mechanism for smoother thumb movement on value changes.
- Improved the system for updating and displaying the slider's visual components when its properties change.

- Fixed potential compatibility issues when changing the slider's direction.
- Addressed minor visual display issues in the slider identified during testing.

- Created and published comprehensive documentation covering all aspects of using, configuring, and integrating the slider into an application.
  • Loading branch information
Ramiz69 authored Apr 6, 2024
1 parent a77d68c commit 8839225
Show file tree
Hide file tree
Showing 210 changed files with 1,557 additions and 259 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# CHANGELOG

## [0.2.0] - 2024-04-06

### Added
- Added vertical direction support (`bottomToTop`, `topToBottom`) for the slider, complementing the existing horizontal orientation.
- Implemented new `TrackConfiguration` and `ThumbConfiguration` structures to allow detailed customization of the slider's appearance and behavior.
- Developed and documented the `SliderDelegate` protocol and associated methods for handling slider events.
- Implemented a documentation system using DocC, providing detailed guides and usage examples for the `Slider` class.
- Added Swift-style documentation comments for all new and updated slider components.

### Changed
- Updated methods to enhance performance and reduce code duplication in the `Slider` class.
- Modified the animation mechanism for smoother thumb movement on value changes.
- Improved the system for updating and displaying the slider's visual components when its properties change.

### Fixed
- Fixed potential compatibility issues when changing the slider's direction.
- Addressed minor visual display issues in the slider identified during testing.

### Documentation
- Created and published comprehensive documentation covering all aspects of using, configuring, and integrating the slider into an application.

## [0.1.1] - 2024-03-17

### Changed
Expand Down
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
[![License](https://img.shields.io/cocoapods/l/RKSlider.svg?style=flat)](https://cocoapods.org/pods/RKSlider)
[![Platform](https://img.shields.io/cocoapods/p/RKSlider.svg?style=flat)](https://cocoapods.org/pods/RKSlider)
![GitHub Release](https://img.shields.io/github/v/release/ramiz69/Slider)
[![Swift Package Manager](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange?style=flat-square)](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange?style=flat-square)

- [Installation](#installation)
- [Author](#author)
Expand All @@ -18,10 +17,14 @@
- Swift 5+

## Preview
<img src="Screenshots/leftToRightDefault.png" width="300"/>
<img src="Screenshots/rightToLeftDefault.png" width="300"/>
<img src="Screenshots/leftToRightCustom.png" width="300"/>
<img src="Screenshots/preference.png" width="300"/>
<details>
<summary>Preview</summary>

<img src="Screenshots/leftToRightDefault.png" width="400"/>
<img src="Screenshots/rightToLeftDefault.png" width="400"/>
<img src="Screenshots/leftToRightCustom.png" width="400"/>
<img src="Screenshots/preference.png" width="400"/>
</details>

## Installation

Expand All @@ -33,7 +36,7 @@ Once you have your Swift package set up, adding Slider as a dependency is as eas

```swift
dependencies: [
.package(url: "https://github.com/Ramiz69/Slider.git", .upToNextMajor(from: "0.1.0"))
.package(url: "https://github.com/Ramiz69/Slider.git", .upToNextMajor(from: "0.2.0"))
]
```

Expand Down
2 changes: 1 addition & 1 deletion RKSlider.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |spec|

spec.name = 'RKSlider'
spec.version = '0.1.1'
spec.version = '0.2.0'
spec.summary = 'A CocoaPods library written in Swift'

spec.description = <<-DESC
Expand Down
26 changes: 26 additions & 0 deletions RKSlider/0.1.1/RKSlider.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Pod::Spec.new do |spec|

spec.name = 'RKSlider'
spec.version = '0.1.1'
spec.summary = 'A CocoaPods library written in Swift'

spec.description = <<-DESC
This CocoaPods library helps you create application with the best slider.
DESC

spec.homepage = 'https://github.com/Ramiz69/Slider'

spec.license = 'MIT'

spec.author = { 'Ramiz Kichibekov' => '[email protected]' }
spec.social_media_url = 'https://t.me/Ramiz69'

spec.ios.deployment_target = "14.0"

spec.source = { :git => 'https://github.com/Ramiz69/Slider.git', :tag => spec.version }

spec.swift_version = ['5.0', '5.9']

spec.source_files = 'Sources/*.swift', 'Sources/**/*.swift'

end
20 changes: 4 additions & 16 deletions Slider.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@
4B2EB6F123C1E5AA00FB91AD /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4B2EB6EF23C1E5AA00FB91AD /* LaunchScreen.storyboard */; };
4B889B692433375D002FCE02 /* CodeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B889B682433375D002FCE02 /* CodeViewController.swift */; };
4B889B7624333E7C002FCE02 /* CodeViewController+SliderDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B889B7524333E7C002FCE02 /* CodeViewController+SliderDelegate.swift */; };
4B8DAE962BA6925A005CFA82 /* Animation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B8DAE952BA6925A005CFA82 /* Animation.swift */; };
4B8DAE982BA6956B005CFA82 /* TrackConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B8DAE972BA6956B005CFA82 /* TrackConfiguration.swift */; };
4B8DAE9A2BA696A8005CFA82 /* ThumbConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B8DAE992BA696A8005CFA82 /* ThumbConfiguration.swift */; };
4B8DAE9C2BA69A69005CFA82 /* RangeEndpointsConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B8DAE9B2BA69A69005CFA82 /* RangeEndpointsConfiguration.swift */; };
4B8DAE9F2BA6A056005CFA82 /* PreferenceManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B8DAE9E2BA6A056005CFA82 /* PreferenceManager.swift */; };
4B8DAEA12BA6A5E9005CFA82 /* CodeViewController+UIColorPickerViewControllerDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B8DAEA02BA6A5E9005CFA82 /* CodeViewController+UIColorPickerViewControllerDelegate.swift */; };
4B8DAEA42BA6AE54005CFA82 /* ThumbLayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B8DAEA22BA6ACFF005CFA82 /* ThumbLayer.swift */; };
4B8DAEA62BA6B445005CFA82 /* TextLayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B8DAEA52BA6B445005CFA82 /* TextLayer.swift */; };
4BC808B92BC1A005001F31C8 /* Documentation.docc in Sources */ = {isa = PBXBuildFile; fileRef = 4BC808B82BC1A005001F31C8 /* Documentation.docc */; };
4BF628A12BA2B38D0093637E /* HapticConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4BF628922BA2B38D0093637E /* HapticConfiguration.swift */; };
4BF628A22BA2B38D0093637E /* Direction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4BF628942BA2B38D0093637E /* Direction.swift */; };
4BF628A32BA2B38D0093637E /* Slider+UITouch.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4BF628962BA2B38D0093637E /* Slider+UITouch.swift */; };
4BF628A42BA2B38D0093637E /* String.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4BF628972BA2B38D0093637E /* String.swift */; };
4BF628A52BA2B38D0093637E /* SliderDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4BF628992BA2B38D0093637E /* SliderDelegate.swift */; };
Expand Down Expand Up @@ -69,16 +68,15 @@
4B2EB6F223C1E5AA00FB91AD /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
4B889B682433375D002FCE02 /* CodeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CodeViewController.swift; sourceTree = "<group>"; };
4B889B7524333E7C002FCE02 /* CodeViewController+SliderDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "CodeViewController+SliderDelegate.swift"; sourceTree = "<group>"; };
4B8DAE952BA6925A005CFA82 /* Animation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Animation.swift; sourceTree = "<group>"; };
4B8DAE972BA6956B005CFA82 /* TrackConfiguration.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TrackConfiguration.swift; sourceTree = "<group>"; };
4B8DAE992BA696A8005CFA82 /* ThumbConfiguration.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ThumbConfiguration.swift; sourceTree = "<group>"; };
4B8DAE9B2BA69A69005CFA82 /* RangeEndpointsConfiguration.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RangeEndpointsConfiguration.swift; sourceTree = "<group>"; };
4B8DAE9E2BA6A056005CFA82 /* PreferenceManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreferenceManager.swift; sourceTree = "<group>"; };
4B8DAEA02BA6A5E9005CFA82 /* CodeViewController+UIColorPickerViewControllerDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "CodeViewController+UIColorPickerViewControllerDelegate.swift"; sourceTree = "<group>"; };
4B8DAEA22BA6ACFF005CFA82 /* ThumbLayer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ThumbLayer.swift; sourceTree = "<group>"; };
4B8DAEA52BA6B445005CFA82 /* TextLayer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TextLayer.swift; sourceTree = "<group>"; };
4BC808B82BC1A005001F31C8 /* Documentation.docc */ = {isa = PBXFileReference; lastKnownFileType = folder.documentationcatalog; path = Documentation.docc; sourceTree = "<group>"; };
4BF628922BA2B38D0093637E /* HapticConfiguration.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HapticConfiguration.swift; sourceTree = "<group>"; };
4BF628942BA2B38D0093637E /* Direction.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Direction.swift; sourceTree = "<group>"; };
4BF628962BA2B38D0093637E /* Slider+UITouch.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Slider+UITouch.swift"; sourceTree = "<group>"; };
4BF628972BA2B38D0093637E /* String.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = String.swift; sourceTree = "<group>"; };
4BF628992BA2B38D0093637E /* SliderDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SliderDelegate.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -225,15 +223,6 @@
path = Configurations;
sourceTree = "<group>";
};
4BF628952BA2B38D0093637E /* Enums */ = {
isa = PBXGroup;
children = (
4BF628942BA2B38D0093637E /* Direction.swift */,
4B8DAE952BA6925A005CFA82 /* Animation.swift */,
);
path = Enums;
sourceTree = "<group>";
};
4BF628982BA2B38D0093637E /* Extensions */ = {
isa = PBXGroup;
children = (
Expand All @@ -255,12 +244,12 @@
isa = PBXGroup;
children = (
4BF628932BA2B38D0093637E /* Configurations */,
4BF628952BA2B38D0093637E /* Enums */,
4BF628982BA2B38D0093637E /* Extensions */,
4BF6289A2BA2B38D0093637E /* Protocols */,
4BF6289B2BA2B38D0093637E /* Info.plist */,
4BF6289C2BA2B38D0093637E /* Slider.h */,
4BF6289D2BA2B38D0093637E /* Slider.swift */,
4BC808B82BC1A005001F31C8 /* Documentation.docc */,
4BF6289F2BA2B38D0093637E /* SliderTrackLayer.swift */,
4B8DAEA22BA6ACFF005CFA82 /* ThumbLayer.swift */,
4B8DAEA52BA6B445005CFA82 /* TextLayer.swift */,
Expand Down Expand Up @@ -389,13 +378,12 @@
files = (
4BF628A52BA2B38D0093637E /* SliderDelegate.swift in Sources */,
4BF628A32BA2B38D0093637E /* Slider+UITouch.swift in Sources */,
4BF628A22BA2B38D0093637E /* Direction.swift in Sources */,
4B8DAE9C2BA69A69005CFA82 /* RangeEndpointsConfiguration.swift in Sources */,
4BF628A42BA2B38D0093637E /* String.swift in Sources */,
4B8DAE962BA6925A005CFA82 /* Animation.swift in Sources */,
4B8DAE9A2BA696A8005CFA82 /* ThumbConfiguration.swift in Sources */,
4BF628A82BA2B38D0093637E /* Slider.swift in Sources */,
4B8DAEA62BA6B445005CFA82 /* TextLayer.swift in Sources */,
4BC808B92BC1A005001F31C8 /* Documentation.docc in Sources */,
4BF628AA2BA2B38D0093637E /* SliderTrackLayer.swift in Sources */,
4B8DAE982BA6956B005CFA82 /* TrackConfiguration.swift in Sources */,
4B8DAEA42BA6AE54005CFA82 /* ThumbLayer.swift in Sources */,
Expand Down
Binary file not shown.
Loading

0 comments on commit 8839225

Please sign in to comment.