-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from shakurocom/ScrollableTabs-v1.0.0
added ScrollableTabs framework with example
- Loading branch information
Showing
23 changed files
with
2,650 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
swiftlint_version: 0.43.1 | ||
|
||
excluded: # paths to ignore during linting. Takes precedence over `included`. | ||
- Pods | ||
|
||
analyzer_rules: # Rules run by `swiftlint analyze` (experimental) | ||
- unused_declaration | ||
- unused_import | ||
|
||
deployment_target: | ||
iOS_deployment_target: 10.0 | ||
|
||
closure_body_length: | ||
warning: 30 | ||
error: 30 | ||
|
||
identifier_name: | ||
max_length: 150 | ||
|
||
file_length: | ||
warning: 1500 | ||
error: 1500 | ||
#ignore_comment_only_lines: true | ||
|
||
function_body_length: | ||
warning: 200 | ||
error: 200 | ||
|
||
function_parameter_count: | ||
warning: 8 | ||
error: 8 | ||
|
||
line_length: | ||
warning: 1000 | ||
error: 1000 | ||
|
||
type_body_length: | ||
warning: 1000 | ||
error: 1000 | ||
|
||
type_name: | ||
max_length: 150 | ||
|
||
cyclomatic_complexity: | ||
warning: 30 | ||
error: 30 | ||
|
||
opt_in_rules: | ||
- closure_body_length | ||
# - closure_end_indentation # disabled, because xcode's block indentation depends on `[weak self]` | ||
- closure_spacing | ||
- contains_over_filter_count | ||
- contains_over_filter_is_empty | ||
- discouraged_optional_boolean | ||
- duplicate_imports | ||
- empty_collection_literal | ||
- empty_count | ||
- empty_string | ||
- explicit_init | ||
- fatal_error_message | ||
# - file_name # disabled, because results are not consistent | ||
# - file_header | ||
- first_where | ||
- force_unwrapping | ||
- identical_operands | ||
# - indentation_width # disabled, because multiline arguments are not recognized properly | ||
- inert_defer | ||
- last_where | ||
- legacy_random | ||
- let_var_whitespace | ||
# - multiline_arguments | ||
- multiline_parameters | ||
- multiple_closures_with_trailing_closure | ||
- no_space_in_method_call | ||
# - object_literal | ||
- operator_usage_whitespace | ||
- optional_enum_case_matching | ||
- prefer_self_type_over_type_of_self | ||
- prefixed_toplevel_constant | ||
- private_action | ||
- private_over_fileprivate | ||
- prohibited_super_call | ||
- reduce_into | ||
- redundant_nil_coalescing | ||
- single_test_class | ||
- sorted_first_last | ||
# - sorted_imports | ||
- strict_fileprivate | ||
- strong_iboutlet | ||
- toggle_bool | ||
# - type_contents_order # https://realm.github.io/SwiftLint/type_contents_order.html | ||
# - trailing_closure | ||
- unowned_variable_capture | ||
- unused_setter_value | ||
- vertical_parameter_alignment_on_call | ||
- yoda_condition |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2017 Shakuro (https://shakuro.com/) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
source 'https://github.com/CocoaPods/Specs.git' | ||
|
||
platform :ios, '11.0' | ||
|
||
use_frameworks! | ||
|
||
workspace 'ScrollableTabs' | ||
|
||
target 'ScrollableTabs_Framework' do | ||
project 'ScrollableTabs_Framework.xcodeproj' | ||
end | ||
|
||
target 'ScrollableTabs_Example' do | ||
project 'ScrollableTabs_Example.xcodeproj' | ||
pod 'SwiftLint', '0.43.1' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
PODS: | ||
- SwiftLint (0.43.1) | ||
|
||
DEPENDENCIES: | ||
- SwiftLint (= 0.43.1) | ||
|
||
SPEC REPOS: | ||
https://github.com/CocoaPods/Specs.git: | ||
- SwiftLint | ||
|
||
SPEC CHECKSUMS: | ||
SwiftLint: 99f82d07b837b942dd563c668de129a03fc3fb52 | ||
|
||
PODFILE CHECKSUM: 52bb8ab55fddfd48cc895fd44d4705b74c026b31 | ||
|
||
COCOAPODS: 1.11.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
![Shakuro ScrollableTabs](title_image.png) | ||
<br><br> | ||
# ScrollableTabs | ||
![Version](https://img.shields.io/badge/version-1.0.0-blue.svg) | ||
![Platform](https://img.shields.io/badge/platform-iOS-lightgrey.svg) | ||
![License MIT](https://img.shields.io/badge/license-MIT-green.svg) | ||
|
||
- [Requirements](#requirements) | ||
- [Installation](#installation) | ||
- [Usage](#usage) | ||
- [License](#license) | ||
|
||
## Requirements | ||
|
||
- iOS 11.0+ | ||
- Xcode 11.0+ | ||
- Swift 5.0+ | ||
|
||
## Installation | ||
|
||
### CocoaPods | ||
|
||
To integrate ScrollableTabs into your Xcode project with CocoaPods, specify it in your `Podfile`: | ||
|
||
```ruby | ||
pod 'Shakuro.ScrollableTabs' | ||
``` | ||
|
||
Then, run the following command: | ||
|
||
```bash | ||
$ pod install | ||
``` | ||
|
||
### Manually | ||
|
||
If you prefer not to use CocoaPods, you can integrate Shakuro.ScrollableTabs simply by copying it to your project. | ||
|
||
## Usage | ||
|
||
Have a look at the [ScrollableTabs_Example](https://github.com/shakurocom/ScrollableTabs/tree/master/ScrollableTabs_Example) | ||
|
||
## License | ||
|
||
Shakuro.ScrollableTabs is released under the MIT license. [See LICENSE](https://github.com/shakurocom/ScrollableTabs/blob/master/LICENSE.md) for details. | ||
|
||
## Give it a try and reach us | ||
|
||
Star this tool if you like it, it will help us grow and add new useful things. | ||
Feel free to reach out and hire our team to develop a mobile or web project for you. | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
ScrollableTabs.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
Oops, something went wrong.