├── .DS_Store
├── .github
├── FUNDING.yml
├── .DS_Store
└── workflows
│ ├── .DS_Store
│ ├── swift.yml
│ └── publish-pages.yml
├── docs
└── .DS_Store
├── RKSlider
├── .DS_Store
├── 0.0.2
│ └── RKSlider.podspec
├── 0.0.7
│ └── RKSlider.podspec
├── 0.0.8
│ └── RKSlider.podspec
├── 0.0.9
│ └── RKSlider.podspec
├── 0.1.0
│ └── RKSlider.podspec
└── 0.1.1
│ └── RKSlider.podspec
├── Sources
├── .DS_Store
├── Managers
│ ├── LoggerManager.swift
│ └── HapticManager.swift
├── Slider.h
├── Info.plist
├── Documentation.docc
│ ├── ThumbConfiguration.md
│ ├── RangeEndpointConfiguration.md
│ ├── TrackConfiguration.md
│ ├── SliderDelegate.md
│ └── Slider.md
├── TextLayer.swift
├── Extensions
│ └── String.swift
├── ThumbLayer.swift
└── Configurations
│ ├── HapticConfiguration.swift
│ ├── ThumbConfiguration.swift
│ └── RangeEndpointsConfiguration.swift
├── Slider_Example
├── .DS_Store
├── Flows
│ ├── .DS_Store
│ └── Main
│ │ ├── .DS_Store
│ │ └── Extensions
│ │ ├── CodeViewController+SliderDelegate.swift
│ │ └── CodeViewController+UIColorPickerViewControllerDelegate.swift
├── Supporting Files
│ ├── Assets.xcassets
│ │ ├── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ └── Info.plist
└── Application
│ ├── SceneDelegate.swift
│ ├── Base.lproj
│ └── LaunchScreen.storyboard
│ └── AppDelegate.swift
├── Screenshots
├── preference.png
├── leftToRightCustom.png
├── leftToRightDefault.png
└── rightToLeftDefault.png
├── Slider.doccarchive
├── favicon.ico
├── index
│ ├── data.mdb
│ ├── navigator.index
│ └── availability.index
├── developer-og.jpg
├── developer-og-twitter.jpg
├── metadata.json
├── img
│ ├── deprecated-icon.7bf1740a.svg
│ ├── added-icon.832a5d2c.svg
│ └── modified-icon.efb2697d.svg
├── index.html
├── documentation
│ └── slider
│ │ ├── index.html
│ │ ├── slider
│ │ ├── index.html
│ │ ├── step
│ │ │ └── index.html
│ │ ├── delegate
│ │ │ └── index.html
│ │ ├── maximum
│ │ │ └── index.html
│ │ ├── minimum
│ │ │ └── index.html
│ │ ├── value
│ │ │ └── index.html
│ │ ├── continuous
│ │ │ └── index.html
│ │ ├── cornerradius
│ │ │ └── index.html
│ │ ├── init(frame:)
│ │ │ └── index.html
│ │ ├── addaction(_:for:)
│ │ │ └── index.html
│ │ ├── hapticconfiguration
│ │ │ └── index.html
│ │ ├── layoutsubviews()
│ │ │ └── index.html
│ │ ├── previoustouchpoint
│ │ │ └── index.html
│ │ ├── thumbconfiguration
│ │ │ └── index.html
│ │ ├── trackconfiguration
│ │ │ └── index.html
│ │ ├── addtarget(_:action:for:)
│ │ │ └── index.html
│ │ ├── begintracking(_:with:)
│ │ │ └── index.html
│ │ ├── direction-swift.enum
│ │ │ ├── index.html
│ │ │ ├── !=(_:_:)
│ │ │ │ └── index.html
│ │ │ ├── bottomtotop
│ │ │ │ └── index.html
│ │ │ ├── lefttoright
│ │ │ │ └── index.html
│ │ │ ├── righttoleft
│ │ │ │ └── index.html
│ │ │ ├── toptobottom
│ │ │ │ └── index.html
│ │ │ └── equatable-implementations
│ │ │ │ └── index.html
│ │ ├── direction-swift.property
│ │ │ └── index.html
│ │ ├── endtracking(_:with:)
│ │ │ └── index.html
│ │ ├── init(direction:frame:)
│ │ │ └── index.html
│ │ ├── intrinsiccontentsize
│ │ │ └── index.html
│ │ ├── removeaction(_:for:)
│ │ │ └── index.html
│ │ ├── usabletrackinglength
│ │ │ └── index.html
│ │ ├── animationstyle-swift.enum
│ │ │ ├── index.html
│ │ │ ├── !=(_:_:)
│ │ │ │ └── index.html
│ │ │ ├── default
│ │ │ │ └── index.html
│ │ │ ├── none
│ │ │ │ └── index.html
│ │ │ └── equatable-implementations
│ │ │ │ └── index.html
│ │ ├── animationstyle-swift.property
│ │ │ └── index.html
│ │ ├── continuetracking(_:with:)
│ │ │ └── index.html
│ │ ├── maximumendpointconfiguration
│ │ │ └── index.html
│ │ ├── minimumendpointconfiguration
│ │ │ └── index.html
│ │ └── removetarget(_:action:for:)
│ │ │ └── index.html
│ │ ├── sliderdelegate
│ │ ├── index.html
│ │ ├── didbegintracking(_:)-51xp9
│ │ │ └── index.html
│ │ ├── didbegintracking(_:)-7wwfi
│ │ │ └── index.html
│ │ ├── didendtracking(_:)-28et
│ │ │ └── index.html
│ │ ├── didendtracking(_:)-2wyzq
│ │ │ └── index.html
│ │ ├── didcontinuetracking(_:)-3v87
│ │ │ └── index.html
│ │ ├── didcontinuetracking(_:)-57wz9
│ │ │ └── index.html
│ │ └── slider(_:displaytextforvalue:)
│ │ │ └── index.html
│ │ ├── hapticconfiguration
│ │ ├── index.html
│ │ └── init(reachlimitvaluehapticenabled:changevaluehapticenabled:changedirectionhapticenabled:reachimpactgeneratorstyle:changevalueimpactgeneratorstyle:)
│ │ │ └── index.html
│ │ ├── thumbconfiguration
│ │ ├── index.html
│ │ ├── size
│ │ │ └── index.html
│ │ ├── borderwidth
│ │ │ └── index.html
│ │ ├── fontsize
│ │ │ └── index.html
│ │ ├── backgroundcolor
│ │ │ └── index.html
│ │ └── init(backgroundcolor:fontsize:size:borderwidth:)
│ │ │ └── index.html
│ │ ├── trackconfiguration
│ │ ├── index.html
│ │ ├── height
│ │ │ └── index.html
│ │ ├── inset
│ │ │ └── index.html
│ │ ├── maxcolor
│ │ │ └── index.html
│ │ ├── mincolor
│ │ │ └── index.html
│ │ ├── reversemincolor
│ │ │ └── index.html
│ │ └── init(maxcolor:mincolor:reversemincolor:height:inset:)
│ │ │ └── index.html
│ │ └── rangeendpointsconfiguration
│ │ ├── index.html
│ │ └── init(anchorpoint:foregroundcolor:fontsize:aligmentmode:)
│ │ └── index.html
├── js
│ ├── highlight-js-shell-js.0ad5b20f.js
│ ├── highlight-js-json-js.2a1856ba.js
│ ├── highlight-js-diff-js.4db9a783.js
│ ├── highlight-js-http-js.f78e83c2.js
│ ├── highlight-js-xml-js.0d78f903.js
│ ├── highlight-js-markdown-js.a2f456af.js
│ ├── highlight-js-java-js.4fe21e94.js
│ ├── highlight-js-llvm-js.26121771.js
│ ├── highlight-js-objectivec-js.74dea052.js
│ ├── highlight-js-bash-js.702f0c5c.js
│ ├── highlight-js-custom-markdown.78c9f6ed.js
│ └── highlight-js-python-js.60354774.js
├── favicon.svg
└── data
│ └── documentation
│ └── slider
│ ├── slider
│ ├── layoutsubviews().json
│ ├── continuous.json
│ ├── previoustouchpoint.json
│ ├── intrinsiccontentsize.json
│ ├── usabletrackinglength.json
│ ├── direction-swift.enum
│ │ ├── bottomtotop.json
│ │ ├── lefttoright.json
│ │ ├── righttoleft.json
│ │ ├── toptobottom.json
│ │ └── equatable-implementations.json
│ ├── animationstyle-swift.enum
│ │ ├── none.json
│ │ ├── default.json
│ │ └── equatable-implementations.json
│ └── endtracking(_:with:).json
│ └── trackconfiguration
│ ├── height.json
│ ├── maxcolor.json
│ ├── inset.json
│ ├── mincolor.json
│ └── reversemincolor.json
├── Tests
└── SliderTests
│ └── SliderTests.swift
├── .swiftpm
└── xcode
│ ├── package.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcuserdata
│ │ └── ramizkichibekov.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
│ └── xcuserdata
│ └── ramizkichibekov.xcuserdatad
│ └── xcschemes
│ └── xcschememanagement.plist
├── Slider.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcuserdata
│ │ └── ramizkichibekov.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
├── xcuserdata
│ └── ramizkichibekov.xcuserdatad
│ │ ├── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ └── xcschememanagement.plist
└── xcshareddata
│ └── xcschemes
│ ├── Slider.xcscheme
│ └── Slider_Example.xcscheme
├── Package.swift
├── RKSlider.podspec
├── LICENSE
├── README.md
└── CHANGELOG.md
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/.DS_Store
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | github: [ramiz69]
2 | buy_me_a_coffee: ramiz069
3 |
--------------------------------------------------------------------------------
/docs/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/docs/.DS_Store
--------------------------------------------------------------------------------
/.github/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/.github/.DS_Store
--------------------------------------------------------------------------------
/RKSlider/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/RKSlider/.DS_Store
--------------------------------------------------------------------------------
/Sources/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/Sources/.DS_Store
--------------------------------------------------------------------------------
/Slider_Example/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/Slider_Example/.DS_Store
--------------------------------------------------------------------------------
/Screenshots/preference.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/Screenshots/preference.png
--------------------------------------------------------------------------------
/.github/workflows/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/.github/workflows/.DS_Store
--------------------------------------------------------------------------------
/Slider.doccarchive/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/Slider.doccarchive/favicon.ico
--------------------------------------------------------------------------------
/Slider_Example/Flows/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/Slider_Example/Flows/.DS_Store
--------------------------------------------------------------------------------
/Screenshots/leftToRightCustom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/Screenshots/leftToRightCustom.png
--------------------------------------------------------------------------------
/Screenshots/leftToRightDefault.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/Screenshots/leftToRightDefault.png
--------------------------------------------------------------------------------
/Screenshots/rightToLeftDefault.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/Screenshots/rightToLeftDefault.png
--------------------------------------------------------------------------------
/Slider.doccarchive/index/data.mdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/Slider.doccarchive/index/data.mdb
--------------------------------------------------------------------------------
/Slider.doccarchive/developer-og.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/Slider.doccarchive/developer-og.jpg
--------------------------------------------------------------------------------
/Slider_Example/Flows/Main/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/Slider_Example/Flows/Main/.DS_Store
--------------------------------------------------------------------------------
/Slider.doccarchive/index/navigator.index:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/Slider.doccarchive/index/navigator.index
--------------------------------------------------------------------------------
/Slider.doccarchive/developer-og-twitter.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/Slider.doccarchive/developer-og-twitter.jpg
--------------------------------------------------------------------------------
/Slider.doccarchive/index/availability.index:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/Slider.doccarchive/index/availability.index
--------------------------------------------------------------------------------
/Slider_Example/Supporting Files/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/Slider.doccarchive/metadata.json:
--------------------------------------------------------------------------------
1 | {"schemaVersion":{"major":0,"minor":1,"patch":0},"bundleDisplayName":"Slider","bundleIdentifier":"Ramiz-Kichibekov.Slider"}
--------------------------------------------------------------------------------
/Tests/SliderTests/SliderTests.swift:
--------------------------------------------------------------------------------
1 | import XCTest
2 | @testable import Slider
3 |
4 | final class SliderTests: XCTestCase {
5 | func testExample() throws {
6 | XCTAssertEqual(4, 4)
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Slider.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.swiftpm/xcode/package.xcworkspace/xcuserdata/ramizkichibekov.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/.swiftpm/xcode/package.xcworkspace/xcuserdata/ramizkichibekov.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Slider.xcodeproj/xcuserdata/ramizkichibekov.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
--------------------------------------------------------------------------------
/Slider.xcodeproj/project.xcworkspace/xcuserdata/ramizkichibekov.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ramiz69/Slider/HEAD/Slider.xcodeproj/project.xcworkspace/xcuserdata/ramizkichibekov.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Slider.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Sources/Managers/LoggerManager.swift:
--------------------------------------------------------------------------------
1 | //
2 | // LoggerManager.swift
3 | // Slider
4 | //
5 | // Created by Рамиз Кичибеков on 06.01.2025.
6 | // Copyright © 2025 Ramiz Kichibekov. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import OSLog
11 |
12 | extension Logger {
13 | private static let subsystem: String = "Slider"
14 |
15 | static let haptic = Logger(subsystem: subsystem, category: "haptic_feedback")
16 | }
17 |
--------------------------------------------------------------------------------
/Sources/Slider.h:
--------------------------------------------------------------------------------
1 | //
2 | // Slider.h
3 | // Slider
4 | //
5 | // Created by Рамиз Кичибеков on 05.01.2020.
6 | // Copyright © 2020 Ramiz Kichibekov. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | //! Project version number for Slider.
12 | FOUNDATION_EXPORT double SliderVersionNumber;
13 |
14 | //! Project version string for Slider.
15 | FOUNDATION_EXPORT const unsigned char SliderVersionString[];
16 |
17 | // In this header, you should import all the public headers of your framework using statements like #import
18 |
19 |
20 |
--------------------------------------------------------------------------------
/Package.swift:
--------------------------------------------------------------------------------
1 | // swift-tools-version: 6.0
2 |
3 | import PackageDescription
4 |
5 | let package = Package(
6 | name: "Slider",
7 | platforms: [
8 | .iOS(.v14)
9 | ],
10 | products: [
11 | .library(
12 | name: "Slider",
13 | targets: ["Slider"]),
14 | ],
15 | dependencies: [],
16 | targets: [
17 | .target(
18 | name: "Slider",
19 | dependencies: []),
20 | .testTarget(
21 | name: "SliderTests",
22 | dependencies: ["Slider"]),
23 | ],
24 | swiftLanguageModes: [.v6]
25 | )
26 |
--------------------------------------------------------------------------------
/Slider.doccarchive/img/deprecated-icon.7bf1740a.svg:
--------------------------------------------------------------------------------
1 |
10 |
11 |
--------------------------------------------------------------------------------
/Slider.doccarchive/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/step/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/delegate/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/maximum/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/minimum/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/value/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/sliderdelegate/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/hapticconfiguration/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/continuous/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/cornerradius/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/init(frame:)/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/thumbconfiguration/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/trackconfiguration/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/addaction(_:for:)/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/hapticconfiguration/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/layoutsubviews()/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/previoustouchpoint/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/thumbconfiguration/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/trackconfiguration/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/thumbconfiguration/size/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/trackconfiguration/height/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/trackconfiguration/inset/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/rangeendpointsconfiguration/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/addtarget(_:action:for:)/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/begintracking(_:with:)/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/direction-swift.enum/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/direction-swift.property/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/endtracking(_:with:)/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/init(direction:frame:)/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/intrinsiccontentsize/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/removeaction(_:for:)/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/usabletrackinglength/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/thumbconfiguration/borderwidth/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/thumbconfiguration/fontsize/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/trackconfiguration/maxcolor/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/trackconfiguration/mincolor/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/animationstyle-swift.enum/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/animationstyle-swift.property/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/continuetracking(_:with:)/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/direction-swift.enum/!=(_:_:)/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/maximumendpointconfiguration/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/minimumendpointconfiguration/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/removetarget(_:action:for:)/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/thumbconfiguration/backgroundcolor/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/trackconfiguration/reversemincolor/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/animationstyle-swift.enum/!=(_:_:)/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/animationstyle-swift.enum/default/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/animationstyle-swift.enum/none/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/direction-swift.enum/bottomtotop/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/direction-swift.enum/lefttoright/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/direction-swift.enum/righttoleft/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/direction-swift.enum/toptobottom/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/sliderdelegate/didbegintracking(_:)-51xp9/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/sliderdelegate/didbegintracking(_:)-7wwfi/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/sliderdelegate/didendtracking(_:)-28et/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/sliderdelegate/didendtracking(_:)-2wyzq/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/sliderdelegate/didcontinuetracking(_:)-3v87/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/sliderdelegate/didcontinuetracking(_:)-57wz9/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/sliderdelegate/slider(_:displaytextforvalue:)/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/img/added-icon.832a5d2c.svg:
--------------------------------------------------------------------------------
1 |
10 |
11 |
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/direction-swift.enum/equatable-implementations/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/slider/animationstyle-swift.enum/equatable-implementations/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/thumbconfiguration/init(backgroundcolor:fontsize:size:borderwidth:)/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/js/highlight-js-shell-js.0ad5b20f.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * This source file is part of the Swift.org open source project
3 | *
4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors
5 | * Licensed under Apache License v2.0 with Runtime Library Exception
6 | *
7 | * See https://swift.org/LICENSE.txt for license information
8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors
9 | */
10 | (self["webpackChunkswift_docc_render"]=self["webpackChunkswift_docc_render"]||[]).push([[176],{7874:function(s){function e(s){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}s.exports=e}}]);
--------------------------------------------------------------------------------
/.swiftpm/xcode/xcuserdata/ramizkichibekov.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | Slider.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | Slider
16 |
17 | primary
18 |
19 |
20 | SliderTests
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/trackconfiguration/init(maxcolor:mincolor:reversemincolor:height:inset:)/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/rangeendpointsconfiguration/init(anchorpoint:foregroundcolor:fontsize:aligmentmode:)/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/.github/workflows/swift.yml:
--------------------------------------------------------------------------------
1 | name: "Slider CI"
2 |
3 | on:
4 | push:
5 | branches:
6 | - master
7 | - development
8 | pull_request:
9 | branches:
10 | - master
11 | - development
12 | jobs:
13 | iOS:
14 | name: Test iOS
15 | runs-on: macOS-latest
16 | env:
17 | DEVELOPER_DIR: /Applications/Xcode_13.4.1.app/Contents/Developer
18 | strategy:
19 | matrix:
20 | destination: ["OS=14.5,name=iPhone 11 Pro"] #, "OS=12.4,name=iPhone XS", "OS=11.4,name=iPhone X", "OS=10.3.1,name=iPhone SE"]
21 | steps:
22 | - uses: actions/checkout@v1
23 | - name: iOS - ${{ matrix.destination }}
24 | run: xcodebuild -project "Slider.xcodeproj" -destination "${{ matrix.destination }}"
25 |
--------------------------------------------------------------------------------
/Slider.xcodeproj/xcuserdata/ramizkichibekov.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | Slider.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 1
11 |
12 | Slider_Example.xcscheme_^#shared#^_
13 |
14 | orderHint
15 | 0
16 |
17 |
18 | SuppressBuildableAutocreation
19 |
20 | 4B2EB6C123C1E11E00FB91AD
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Slider.doccarchive/documentation/slider/hapticconfiguration/init(reachlimitvaluehapticenabled:changevaluehapticenabled:changedirectionhapticenabled:reachimpactgeneratorstyle:changevalueimpactgeneratorstyle:)/index.html:
--------------------------------------------------------------------------------
1 | Documentation
--------------------------------------------------------------------------------
/RKSlider.podspec:
--------------------------------------------------------------------------------
1 | Pod::Spec.new do |spec|
2 |
3 | spec.name = 'RKSlider'
4 | spec.version = '0.2.1'
5 | spec.summary = 'A CocoaPods library written in Swift'
6 |
7 | spec.description = <<-DESC
8 | This CocoaPods library helps you create application with the best slider.
9 | DESC
10 |
11 | spec.homepage = 'https://github.com/Ramiz69/Slider'
12 |
13 | spec.license = 'MIT'
14 |
15 | spec.author = { 'Ramiz Kichibekov' => 'ramiz161@icloud.com' }
16 | spec.social_media_url = 'https://t.me/Ramiz69'
17 |
18 | spec.ios.deployment_target = "14.0"
19 |
20 | spec.source = { :git => 'https://github.com/Ramiz69/Slider.git', :tag => spec.version }
21 |
22 | spec.swift_version = ['6.0']
23 |
24 | spec.source_files = 'Sources/*.swift', 'Sources/**/*.swift'
25 |
26 | end
27 |
--------------------------------------------------------------------------------
/Sources/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE)
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | $(CURRENT_PROJECT_VERSION)
21 |
22 |
23 |
--------------------------------------------------------------------------------
/RKSlider/0.0.2/RKSlider.podspec:
--------------------------------------------------------------------------------
1 | Pod::Spec.new do |spec|
2 |
3 | spec.name = 'RKSlider'
4 | spec.version = '0.0.2'
5 | spec.summary = 'A CocoaPods library written in Swift'
6 |
7 | spec.description = <<-DESC
8 | This CocoaPods library helps you create application with the best slider.
9 | DESC
10 |
11 | spec.homepage = 'https://github.com/Ramiz69/Slider'
12 |
13 | spec.license = 'MIT'
14 |
15 | spec.author = { 'Ramiz Kichibekov' => 'ramiz161@icloud.com' }
16 | spec.social_media_url = 'https://t.me/Ramiz69'
17 |
18 | spec.ios.deployment_target = "11.0"
19 |
20 | spec.source = { :git => 'https://github.com/Ramiz69/Slider.git', :tag => spec.version }
21 |
22 | spec.swift_version = ['5.0', '5.1']
23 |
24 | spec.source_files = 'Slider/*.swift', 'Slider/**/*.swift'
25 |
26 | end
27 |
--------------------------------------------------------------------------------
/RKSlider/0.0.7/RKSlider.podspec:
--------------------------------------------------------------------------------
1 | Pod::Spec.new do |spec|
2 |
3 | spec.name = 'RKSlider'
4 | spec.version = '0.0.7'
5 | spec.summary = 'A CocoaPods library written in Swift'
6 |
7 | spec.description = <<-DESC
8 | This CocoaPods library helps you create application with the best slider.
9 | DESC
10 |
11 | spec.homepage = 'https://github.com/Ramiz69/Slider'
12 |
13 | spec.license = 'MIT'
14 |
15 | spec.author = { 'Ramiz Kichibekov' => 'ramiz161@icloud.com' }
16 | spec.social_media_url = 'https://t.me/Ramiz69'
17 |
18 | spec.ios.deployment_target = "14.0"
19 |
20 | spec.source = { :git => 'https://github.com/Ramiz69/Slider.git', :tag => spec.version }
21 |
22 | spec.swift_version = ['5.0', '5.9']
23 |
24 | spec.source_files = 'Slider/*.swift', 'Slider/**/*.swift'
25 |
26 | end
27 |
--------------------------------------------------------------------------------
/RKSlider/0.0.8/RKSlider.podspec:
--------------------------------------------------------------------------------
1 | Pod::Spec.new do |spec|
2 |
3 | spec.name = 'RKSlider'
4 | spec.version = '0.0.8'
5 | spec.summary = 'A CocoaPods library written in Swift'
6 |
7 | spec.description = <<-DESC
8 | This CocoaPods library helps you create application with the best slider.
9 | DESC
10 |
11 | spec.homepage = 'https://github.com/Ramiz69/Slider'
12 |
13 | spec.license = 'MIT'
14 |
15 | spec.author = { 'Ramiz Kichibekov' => 'ramiz161@icloud.com' }
16 | spec.social_media_url = 'https://t.me/Ramiz69'
17 |
18 | spec.ios.deployment_target = "14.0"
19 |
20 | spec.source = { :git => 'https://github.com/Ramiz69/Slider.git', :tag => spec.version }
21 |
22 | spec.swift_version = ['5.0', '5.9']
23 |
24 | spec.source_files = 'Slider/*.swift', 'Slider/**/*.swift'
25 |
26 | end
27 |
--------------------------------------------------------------------------------
/RKSlider/0.0.9/RKSlider.podspec:
--------------------------------------------------------------------------------
1 | Pod::Spec.new do |spec|
2 |
3 | spec.name = 'RKSlider'
4 | spec.version = '0.0.9'
5 | spec.summary = 'A CocoaPods library written in Swift'
6 |
7 | spec.description = <<-DESC
8 | This CocoaPods library helps you create application with the best slider.
9 | DESC
10 |
11 | spec.homepage = 'https://github.com/Ramiz69/Slider'
12 |
13 | spec.license = 'MIT'
14 |
15 | spec.author = { 'Ramiz Kichibekov' => 'ramiz161@icloud.com' }
16 | spec.social_media_url = 'https://t.me/Ramiz69'
17 |
18 | spec.ios.deployment_target = "14.0"
19 |
20 | spec.source = { :git => 'https://github.com/Ramiz69/Slider.git', :tag => spec.version }
21 |
22 | spec.swift_version = ['5.0', '5.9']
23 |
24 | spec.source_files = 'Sources/*.swift', 'Sources/**/*.swift'
25 |
26 | end
27 |
--------------------------------------------------------------------------------
/RKSlider/0.1.0/RKSlider.podspec:
--------------------------------------------------------------------------------
1 | Pod::Spec.new do |spec|
2 |
3 | spec.name = 'RKSlider'
4 | spec.version = '0.1.0'
5 | spec.summary = 'A CocoaPods library written in Swift'
6 |
7 | spec.description = <<-DESC
8 | This CocoaPods library helps you create application with the best slider.
9 | DESC
10 |
11 | spec.homepage = 'https://github.com/Ramiz69/Slider'
12 |
13 | spec.license = 'MIT'
14 |
15 | spec.author = { 'Ramiz Kichibekov' => 'ramiz161@icloud.com' }
16 | spec.social_media_url = 'https://t.me/Ramiz69'
17 |
18 | spec.ios.deployment_target = "14.0"
19 |
20 | spec.source = { :git => 'https://github.com/Ramiz69/Slider.git', :tag => spec.version }
21 |
22 | spec.swift_version = ['5.0', '5.9']
23 |
24 | spec.source_files = 'Sources/*.swift', 'Sources/**/*.swift'
25 |
26 | end
27 |
--------------------------------------------------------------------------------
/RKSlider/0.1.1/RKSlider.podspec:
--------------------------------------------------------------------------------
1 | Pod::Spec.new do |spec|
2 |
3 | spec.name = 'RKSlider'
4 | spec.version = '0.1.1'
5 | spec.summary = 'A CocoaPods library written in Swift'
6 |
7 | spec.description = <<-DESC
8 | This CocoaPods library helps you create application with the best slider.
9 | DESC
10 |
11 | spec.homepage = 'https://github.com/Ramiz69/Slider'
12 |
13 | spec.license = 'MIT'
14 |
15 | spec.author = { 'Ramiz Kichibekov' => 'ramiz161@icloud.com' }
16 | spec.social_media_url = 'https://t.me/Ramiz69'
17 |
18 | spec.ios.deployment_target = "14.0"
19 |
20 | spec.source = { :git => 'https://github.com/Ramiz69/Slider.git', :tag => spec.version }
21 |
22 | spec.swift_version = ['5.0', '5.9']
23 |
24 | spec.source_files = 'Sources/*.swift', 'Sources/**/*.swift'
25 |
26 | end
27 |
--------------------------------------------------------------------------------
/Slider.doccarchive/js/highlight-js-json-js.2a1856ba.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * This source file is part of the Swift.org open source project
3 | *
4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors
5 | * Licensed under Apache License v2.0 with Runtime Library Exception
6 | *
7 | * See https://swift.org/LICENSE.txt for license information
8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors
9 | */
10 | (self["webpackChunkswift_docc_render"]=self["webpackChunkswift_docc_render"]||[]).push([[82],{14:function(e){function n(e){const n={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},c={match:/[{}[\],:]/,className:"punctuation",relevance:0},a={beginKeywords:["true","false","null"].join(" ")};return{name:"JSON",contains:[n,c,e.QUOTE_STRING_MODE,a,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}e.exports=n}}]);
--------------------------------------------------------------------------------
/Slider.doccarchive/js/highlight-js-diff-js.4db9a783.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * This source file is part of the Swift.org open source project
3 | *
4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors
5 | * Licensed under Apache License v2.0 with Runtime Library Exception
6 | *
7 | * See https://swift.org/LICENSE.txt for license information
8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors
9 | */
10 | (self["webpackChunkswift_docc_render"]=self["webpackChunkswift_docc_render"]||[]).push([[213],{7731:function(e){function n(e){const n=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:n.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:n.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}e.exports=n}}]);
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2024 Kichibekov Ramiz
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Slider.doccarchive/img/modified-icon.efb2697d.svg:
--------------------------------------------------------------------------------
1 |
10 |
11 |
--------------------------------------------------------------------------------
/Sources/Documentation.docc/ThumbConfiguration.md:
--------------------------------------------------------------------------------
1 | # ``Slider/ThumbConfiguration``
2 |
3 | ## Overview
4 |
5 | Use `ThumbConfiguration` to define the appearance of the slider's thumb. This structure provides customization options for the thumb's background color, font size, physical size, and border width.
6 |
7 | ## Topics
8 |
9 | ### Initialization
10 |
11 | - ``init(backgroundColor:fontSize:size:borderWidth:)``
12 |
13 | ### Customization Options
14 |
15 | - ``backgroundColor``
16 | The background color of the thumb. Defaults to `.white`.
17 | - ``fontSize``
18 | The font size used for any text within the thumb. Defaults to `14`.
19 | - ``size``
20 | The size of the thumb, specified as a `CGSize`. Defaults to `(width: 60, height: 36)`.
21 | - ``borderWidth``
22 | The width of the thumb's border. Defaults to `4`.
23 |
24 | ## Example Usage
25 |
26 | ```swift
27 | let thumbConfig = ThumbConfiguration(backgroundColor: .lightGray,
28 | fontSize: 12,
29 | size: CGSize(width: 50, height: 30),
30 | borderWidth: 2)
31 | let slider = Slider()
32 | slider.thumbConfiguration = thumbConfig
33 | ```
34 |
--------------------------------------------------------------------------------
/Sources/Documentation.docc/RangeEndpointConfiguration.md:
--------------------------------------------------------------------------------
1 | # ``Slider/RangeEndpointsConfiguration``
2 |
3 | ## Overview
4 |
5 | `RangeEndpointsConfiguration` defines the appearance and positioning of the text labels at the minimum and maximum ends of the `Slider`. It allows customization of the anchor point, text color, font size, and text alignment.
6 |
7 | ## Topics
8 |
9 | ### Initialization
10 |
11 | - ``init(anchorPoint:foregroundColor:fontSize:aligmentMode:)``
12 |
13 | ### Configuration Options
14 |
15 | - ``anchorPoint``
16 | The anchor point for the text layer of the endpoint label. Defaults to the center of the layer.
17 | - ``foregroundColor``
18 | The color used for the endpoint text. Defaults to white.
19 | - ``fontSize``
20 | The font size of the endpoint text. Defaults to `12`.
21 | - ``aligmentMode``
22 | The alignment of the text within the text layer. Defaults to `.center`.
23 |
24 | ## Example Usage
25 |
26 | ```swift
27 | let endpointsConfig = RangeEndpointsConfiguration(
28 | anchorPoint: CGPoint(x: 0.5, y: 0.5),
29 | foregroundColor: UIColor.white.cgColor,
30 | fontSize: 14,
31 | aligmentMode: .left
32 | )
33 | let slider = Slider()
34 | slider.minimumEndpointConfiguration = endpointsConfig
35 | slider.maximumEndpointConfiguration = endpointsConfig
36 | ```
37 |
--------------------------------------------------------------------------------
/Slider.doccarchive/js/highlight-js-http-js.f78e83c2.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * This source file is part of the Swift.org open source project
3 | *
4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors
5 | * Licensed under Apache License v2.0 with Runtime Library Exception
6 | *
7 | * See https://swift.org/LICENSE.txt for license information
8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors
9 | */
10 | (self["webpackChunkswift_docc_render"]=self["webpackChunkswift_docc_render"]||[]).push([[878],{8937:function(e){function n(e){const n=e.regex,a="HTTP/(2|1\\.[01])",s=/[A-Za-z][A-Za-z0-9-]*/,t={className:"attribute",begin:n.concat("^",s,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},i=[t,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+a+" \\d{3})",end:/$/,contains:[{className:"meta",begin:a},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:i}},{begin:"(?=^[A-Z]+ (.*?) "+a+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:a},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:i}},e.inherit(t,{relevance:0})]}}e.exports=n}}]);
--------------------------------------------------------------------------------
/.github/workflows/publish-pages.yml:
--------------------------------------------------------------------------------
1 | name: Deploy DocC
2 | on:
3 | # Runs on pushes targeting the default branch
4 | push:
5 | branches: ["master"]
6 | # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
7 | permissions:
8 | contents: read
9 | pages: write
10 | id-token: write
11 | # Allow one concurrent deployment
12 | concurrency:
13 | group: "pages"
14 | cancel-in-progress: true
15 | jobs:
16 | deploy:
17 | runs-on: macOS-latest
18 | environment:
19 | name: github-pages
20 | url: ${{ steps.deployment.outputs.page_url }}
21 | steps:
22 | - name: Setup Xcode version
23 | uses: maxim-lobanov/setup-xcode@v1.6.0
24 | with:
25 | xcode-version: latest
26 | - name: Checkout 🛎️
27 | uses: actions/checkout@v3
28 | - name: Build DocC
29 | run: |
30 | xcodebuild docbuild -scheme Slider \
31 | -derivedDataPath /tmp/docbuild \
32 | -destination 'generic/platform=iOS';
33 | $(xcrun --find docc) process-archive \
34 | transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/Slider.doccarchive \
35 | --hosting-base-path master \
36 | --output-path docs;
37 | - name: Upload artifact 📜
38 | uses: actions/upload-pages-artifact@v3.0.1
39 | with:
40 | path: 'docs'
41 | - name: Deploy to GitHub Pages
42 | id: deployment
43 | uses: actions/deploy-pages@v4.0.5
44 |
--------------------------------------------------------------------------------
/Slider.doccarchive/favicon.svg:
--------------------------------------------------------------------------------
1 |
10 |
11 |
--------------------------------------------------------------------------------
/Slider_Example/Application/SceneDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SceneDelegate.swift
3 | //
4 | // Copyright (c) 2024 Ramiz Kichibekov (https://github.com/ramiz69)
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files (the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions:
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 | //
24 |
25 | import UIKit
26 |
27 | final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
28 |
29 | var window: UIWindow?
30 |
31 | func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
32 |
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/Slider_Example/Flows/Main/Extensions/CodeViewController+SliderDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // CodeViewController+SliderDelegate.swift
3 | //
4 | // Copyright (c) 2024 Ramiz Kichibekov (https://github.com/ramiz69)
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files (the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions:
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 | //
24 |
25 | import UIKit
26 | import Slider
27 |
28 | extension CodeViewController: SliderDelegate {
29 |
30 | func slider(_ slider: Slider, displayTextForValue value: CGFloat) -> String {
31 | print(value)
32 | return "\(value)"
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/Sources/TextLayer.swift:
--------------------------------------------------------------------------------
1 | //
2 | // TextLayer.swift
3 | //
4 | // Copyright (c) 2024 Ramiz Kichibekov (https://github.com/ramiz69)
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files (the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions:
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 | //
24 |
25 | import QuartzCore
26 | import CoreGraphics
27 |
28 | final class TextLayer: CATextLayer {
29 |
30 | override func draw(in ctx: CGContext) {
31 | let height = bounds.size.height
32 | let yDiff = (height - fontSize) / 2 - fontSize / 10
33 |
34 | ctx.saveGState()
35 | ctx.translateBy(x: .zero, y: yDiff)
36 | super.draw(in: ctx)
37 |
38 | ctx.restoreGState()
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Slider_Example/Application/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Sources/Extensions/String.swift:
--------------------------------------------------------------------------------
1 | //
2 | // String.swift
3 | //
4 | // Copyright (c) 2020 Ramiz Kichibekov (https://github.com/ramiz69)
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files (the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions:
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 | //
24 |
25 | import UIKit
26 |
27 | extension String {
28 |
29 | func size(withConstrainedWidth width: CGFloat, font: UIFont) -> CGRect {
30 | let constraintRect = CGSize(width: width,
31 | height: .greatestFiniteMagnitude)
32 | let boundingBox = self.boundingRect(with: constraintRect,
33 | options: .usesLineFragmentOrigin,
34 | attributes: [.font: font],
35 | context: nil)
36 |
37 | return boundingBox
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/Sources/Documentation.docc/TrackConfiguration.md:
--------------------------------------------------------------------------------
1 | # ``Slider/TrackConfiguration``
2 |
3 | ## Overview
4 |
5 | `TrackConfiguration` defines the appearance settings for the track of the `Slider` control. It allows customization of the track's colors, height, and inset.
6 |
7 | ## Properties
8 |
9 | - `maxColor`: The color used for the track's background. Default value is a light gray color.
10 | - `minColor`: The color used for the portion of the track that represents values less than the slider's current value. Default value is the system blue color.
11 | - `reverseMinColor`: The color used for the portion of the track that represents values greater than the slider's current value when the slider's direction is reversed. Default value is a red color.
12 | - `height`: The height of the track. Default value is `36`.
13 | - `inset`: The inset of the track within the slider's bounds. Default value is `0`, which means the track will extend the full width/height of the slider.
14 |
15 | ## Initialization
16 |
17 | ### ``init(maxColor:minColor:reverseMinColor:height:inset:)``
18 |
19 | Initializes a `TrackConfiguration` instance with specified colors, height, and inset.
20 |
21 | - Parameters:
22 | - `maxColor`: The color for the track's background.
23 | - `minColor`: The color for the track segment representing values below the slider's current value.
24 | - `reverseMinColor`: The color for the track segment representing values above the slider's current value in a reversed direction.
25 | - `height`: The height of the track.
26 | - `inset`: The inset for the track within the slider's bounds.
27 |
28 | ## Example Usage
29 |
30 | ```swift
31 | let trackConfig = TrackConfiguration(maxColor: UIColor.lightGray,
32 | minColor: UIColor.blue,
33 | reverseMinColor: UIColor.red,
34 | height: 20,
35 | inset: 2)
36 | let slider = Slider()
37 | slider.trackConfiguration = trackConfig
38 | ```
39 |
--------------------------------------------------------------------------------
/Sources/ThumbLayer.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ThumbLayer.swift
3 | //
4 | // Copyright (c) 2024 Ramiz Kichibekov (https://github.com/ramiz69)
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files (the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions:
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 | //
24 |
25 | import Foundation
26 | import QuartzCore
27 | import CoreGraphics
28 |
29 | final class ThumbLayer: CATextLayer {
30 |
31 | // MARK: Life cycle
32 |
33 | override func setNeedsDisplay() {
34 | super.setNeedsDisplay()
35 |
36 | configureBorder()
37 | }
38 |
39 | override func draw(in ctx: CGContext) {
40 | let height = bounds.size.height
41 | let yDiff = (height - fontSize) / 2 - fontSize / 10
42 |
43 | ctx.saveGState()
44 | ctx.translateBy(x: .zero, y: yDiff)
45 | super.draw(in: ctx)
46 |
47 | ctx.restoreGState()
48 | }
49 |
50 | private func configureBorder() {
51 | borderColor = foregroundColor
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/Slider_Example/Supporting Files/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/Sources/Documentation.docc/SliderDelegate.md:
--------------------------------------------------------------------------------
1 | # ``Slider/SliderDelegate``
2 |
3 | ## Overview
4 |
5 | `SliderDelegate` defines a set of methods that you can use to respond to various slider events and to customize the text displayed for the slider's value. It's marked with `@MainActor` to ensure that all protocol methods are executed on the main thread, which is crucial for UI updates. The protocol provides default implementations for tracking methods, so you only need to implement `slider(_:displayTextForValue:)` and any tracking methods you're interested in.
6 |
7 | ## Topics
8 |
9 | ### Required Methods
10 |
11 | - ``slider(_:displayTextForValue:)``
12 | Asks the delegate for the display text for a specific value of the slider. Implement this method to return a customized text representation of the slider's value.
13 |
14 | ### Optional Methods
15 |
16 | The following methods have default empty implementations, making them optional:
17 |
18 | - ``didBeginTracking(_:)``
19 | Tells the delegate that the user has started interacting with the slider. Override this method to respond to the beginning of the user's tracking action.
20 | - ``didContinueTracking(_:)``
21 | Informs the delegate that the user is continuing to move the slider. Override this method to track changes as the user drags the slider.
22 | - ``didEndTracking(_:)``
23 | Notifies the delegate that the user has finished interacting with the slider. Override this method to perform any final actions when the user completes the tracking.
24 |
25 | ## Example Usage
26 |
27 | ```swift
28 | extension YourViewController: SliderDelegate {
29 | public func slider(_ slider: Slider, displayTextForValue value: CGFloat) -> String {
30 | // Return a string representation of the value
31 | return String(format: "%.2f", value)
32 | }
33 |
34 | public func didBeginTracking(_ slider: Slider) {
35 | // Respond to the start of tracking
36 | print("Started tracking slider.")
37 | }
38 |
39 | // No need to override didContinueTracking and didEndTracking unless you need specific behavior.
40 | }
41 | ```
42 |
--------------------------------------------------------------------------------
/Slider_Example/Application/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | //
4 | // Copyright (c) 2024 Ramiz Kichibekov (https://github.com/ramiz69)
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files (the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions:
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 | //
24 |
25 | import UIKit
26 |
27 | @main
28 | final class AppDelegate: UIResponder, UIApplicationDelegate {
29 |
30 | func application(_ application: UIApplication,
31 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
32 | true
33 | }
34 |
35 | // MARK: UISceneSession Lifecycle
36 |
37 | func application(_ application: UIApplication,
38 | configurationForConnecting connectingSceneSession: UISceneSession,
39 | options: UIScene.ConnectionOptions) -> UISceneConfiguration {
40 | UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
41 | }
42 |
43 | func application(_ application: UIApplication,
44 | didDiscardSceneSessions sceneSessions: Set) {
45 | }
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/Slider.doccarchive/js/highlight-js-xml-js.0d78f903.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * This source file is part of the Swift.org open source project
3 | *
4 | * Copyright (c) 2021 Apple Inc. and the Swift project authors
5 | * Licensed under Apache License v2.0 with Runtime Library Exception
6 | *
7 | * See https://swift.org/LICENSE.txt for license information
8 | * See https://swift.org/CONTRIBUTORS.txt for Swift project authors
9 | */
10 | (self["webpackChunkswift_docc_render"]=self["webpackChunkswift_docc_render"]||[]).push([[490],{4610:function(e){function n(e){const n=e.regex,a=n.concat(/[A-Z_]/,n.optional(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),s=/[A-Za-z0-9._:-]+/,t={className:"symbol",begin:/&[a-z]+;|[0-9]+;|[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},i=e.inherit(c,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{className:"string"}),r=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),g={endsWithParent:!0,illegal:/,relevance:0,contains:[{className:"attr",begin:s,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[t]},{begin:/'/,end:/'/,contains:[t]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin://,relevance:10,contains:[c,r,l,i,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[c,i,r,l]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},t,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/