Skip to content

Commit 3924361

Browse files
committed
Update Readme and copyright
1 parent ebbbfd9 commit 3924361

36 files changed

+149
-88
lines changed

.github/FUNDING.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
patreon: ivanvorobei
1+
patreon: varabeis
22
custom: https://xcode-shop.com

.gitignore

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ xcuserdata/
88
# Swift Package Manager
99
Packages/
1010
Package.resolved
11-
*.xcodeproj
12-
.swiftpm
11+
.swiftpm
12+
13+
# Pods
14+
Pods/

Example iOS/App/AppDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Example iOS/Controllers/DiffableTableController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Example iOS/Controllers/RootController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Example iOS/Controllers/SideBarController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Readme.md

+24-42
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,14 @@ Apple's diffable API requerid models for each object type. If you want use it in
44

55
If you like the project, don't forget to `put star ★` and follow me on GitHub:
66

7-
[![https://github.com/ivanvorobei](https://github.com/ivanvorobei/Assets/blob/master/Buttons/follow-me-on-github.svg)](https://github.com/ivanvorobei)
8-
9-
If you want help project, check [Сooperation](#сooperation) section.
7+
[![https://github.com/varabeis](https://github.com/varabeis/Readme/blob/main/Buttons/follow-me-varabeis.svg)](https://github.com/varabeis)
108

119
## Navigate
1210

1311
- [Requirements](#requirements)
1412
- [Installation](#installation)
15-
- [CocoaPods](#cocoapods)
1613
- [Swift Package Manager](#swift-package-manager)
17-
- [Carthage](#carthage)
14+
- [CocoaPods](#cocoapods)
1815
- [Manually](#manually)
1916
- [Usage](#usage)
2017
- [How it work](#usage)
@@ -31,43 +28,35 @@ If you want help project, check [Сooperation](#сooperation) section.
3128

3229
## Requirements
3330

34-
Swift `+5.0`. Ready for use on iOS 13+
31+
iOS 13+
3532

3633
## Installation
3734

38-
### CocoaPods:
39-
40-
[CocoaPods](https://cocoapods.org) is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate `SPDiffable` into your Xcode project using CocoaPods, specify it in your `Podfile`:
41-
42-
```ruby
43-
pod 'SPDiffable'
44-
```
45-
4635
### Swift Package Manager
4736

4837
The [Swift Package Manager](https://swift.org/package-manager/) is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.
4938

50-
To integrate `SPDiffable` into your Xcode project using Xcode 11, specify it in `File > Swift Packages > Add`:
39+
To integrate `SPDiffable` into your Xcode project using Xcode 12, specify it in `File > Swift Packages > Add Package Dependency...`:
5140

5241
```ogdl
53-
https://github.com/ivanvorobei/SPDiffable
42+
https://github.com/varabeis/SPDiffable
5443
```
5544

56-
### Carthage
45+
### CocoaPods:
5746

58-
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate `SPDiffable` into your Xcode project using Carthage, specify it in your `Cartfile`:
47+
[CocoaPods](https://cocoapods.org) is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate `SPDiffable` into your Xcode project using CocoaPods, specify it in your `Podfile`:
5948

60-
```ogdl
61-
github "ivanvorobei/SPDiffable"
49+
```ruby
50+
pod 'SPDiffable'
6251
```
6352

6453
### Manually
6554

66-
If you prefer not to use any of dependency managers, you can integrate `SPDiffable` into your project manually. Put `Source/SPDiffable` folder in your Xcode project. Make sure to enable `Copy items if needed` and `Create groups`.
55+
If you prefer not to use any of dependency managers, you can integrate `SPDiffable` into your project manually. Put `Sources/SPDiffable` folder in your Xcode project. Make sure to enable `Copy items if needed` and `Create groups`.
6756

6857
## Usage
6958

70-
Before read it, highly recomded check `Example` target in project. It examle show all features, like use stepper and switch, like process actions, create custom models and many other. Also you can skip full undestand logic and read [Ready-use section](https://github.com/ivanvorobei/SPDiffable#ready-use) with minimum of code for start.
59+
Before read it, highly recomded check `Example` target in project. It examle show all features, like use stepper and switch, like process actions, create custom models and many other. Also you can skip full undestand logic and read [Ready-use section](https://github.com/varabeis/SPDiffable#ready-use) with minimum of code for start.
7160

7261
For work with diffable need create model (inside project you found some ready-use models) and do cell provider, which convert data-model to `UITableViewCell` or `UICollectionViewCell`. Next example for table, but all methods and class names available for collections.
7362

@@ -275,31 +264,24 @@ In project you can find class `SPDiffableWrapperItem`. Using it, when you don't
275264
let item = SPDiffableWrapperItem(identifier: "unqi-identifier", model: LocationRowModel(city: "Minsk"))
276265
```
277266

278-
And after unwrap it in custom cell provider.
279-
280-
```swift
281-
282-
```
283-
284-
## Сooperation
267+
## Other Projects
285268

286-
This project is free, but developing it takes time. Contributing to this project is a huge help. Here is list of tasks that need to be done, you can help with any:
269+
#### [SPAlert](https://github.com/varabeis/SPAlert)
270+
You can find this alerts in AppStore after feedback or after added song to library in Apple Music. Contains popular Done, Heart presets and many other. Done preset present with draw path animation like original. Also available simple present message without icon. Usage in one line code.
287271

288-
- Update readme text, my English not great :(
289-
- Update docs to swift source files
272+
#### [SPPerspective](https://github.com/varabeis/SPPerspective)
273+
Animation of widgets from iOS 14. 3D transform with dynamic shadow. Look [video preview](https://ivanvorobei.by/github/spperspective/video-preview). Available deep customisation 3D and shadow. Also you can use static transform without animation.
290274

291-
## Other Projects
275+
#### [SPPermissions](https://github.com/varabeis/SPPermissions)
276+
Using for request and check state of permissions. Available native UI for request multiple permissions at the same time. Simple integration and usage like 2 lines code.
292277

293-
#### [SPPermissions](https://github.com/ivanvorobei/SPPermissions)
294-
Allow request permissions with native dialog UI and interactive animations. Also you can request permissions without dialog. Check state any permission. You can start using this project with just two lines of code and easy customisation.
278+
#### [SparrowKit](https://github.com/varabeis/SparrowKit)
279+
Collection of native Swift extensions to boost your development. Support tvOS and watchOS.
295280

296-
#### [SPAlert](https://github.com/ivanvorobei/SPAlert)
297-
It is popup from Apple Music & Feedback in AppStore. Contains Done & Heart presets. Done present with draw path animation. I clone Apple's alerts as much as possible.
298-
You can find this alerts in AppStore after feedback, after added song to library in Apple Music. I am also add alert without icon, as simple message.
281+
Для русского комьюнити
299282

300-
## Russian Community
283+
## Russian-specking Community
301284

302-
Присоединяйтесь в телеграм канал [Код Воробья](https://sparrowcode.by/telegram), там найдете заметки о iOS разработке и дизайне.
303-
Большие туториалы выклыдываю на [YouTube](https://sparrowcode.by/youtube).
285+
В телеграм-канале [Код Воробья](https://ivanvorobei.by/sparrowcode/telegram) пишу о iOS разработке. Видео-туториалы выклыдываю на [YouTube](https://ivanvorobei.by/youtube):
304286

305-
[![Tutorials on YouTube](https://github.com/ivanvorobei/Assets/blob/master/Russian%20Community/youtube-preview.jpg)](https://sparrowcode.by/youtube)
287+
[![Tutorials on YouTube](https://cdn.ivanvorobei.by/github/readme/youtube-preview.jpg)](https://ivanvorobei.by/youtube)

SPDiffable.podspec

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
Pod::Spec.new do |s|
22

3-
s.name = "SPDiffable"
4-
s.version = "1.1.2"
5-
s.summary = "Extenshion of Diffable API which allow not duplicate code and use less models."
6-
s.homepage = "https://github.com/IvanVorobei/SPDiffable"
7-
s.source = { :git => "https://github.com/IvanVorobei/SPDiffable.git", :tag => s.version }
8-
s.license = { :type => "MIT", :file => "LICENSE" }
3+
s.name = 'SPDiffable'
4+
s.version = '1.1.4'
5+
s.summary = 'Extenshion of Diffable API which allow not duplicate code and use less models.'
6+
s.homepage = 'https://github.com/varabeis/SPDiffable'
7+
s.source = { :git => 'https://github.com/varabeis/SPDiffable.git', :tag => s.version }
8+
s.license = { :type => 'MIT', :file => "LICENSE" }
99

10-
s.author = { "Ivan Vorobei" => "varabeis@icloud.com" }
10+
s.author = { 'Ivan Vorobei' => 'hello@ivanvorobei.by' }
11+
s.social_media_url = 'https://ivanvorobei.by'
1112

12-
s.platform = :ios
13-
s.ios.framework = 'UIKit'
14-
s.swift_version = ['4.2', '5.0']
15-
s.ios.deployment_target = "12.0"
13+
s.swift_version = '5.1'
14+
s.ios.deployment_target = '12.0'
1615

17-
s.source_files = "Sources/SPDiffable/**/*.swift"
16+
s.source_files = 'Sources/SPDiffable/**/*.swift'
1817

1918
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1210"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "F47A41CD24EB222C0054DBB2"
18+
BuildableName = "Example iOS.app"
19+
BlueprintName = "Example iOS"
20+
ReferencedContainer = "container:SPDiffable.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
</TestAction>
33+
<LaunchAction
34+
buildConfiguration = "Debug"
35+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
ignoresPersistentStateOnLaunch = "NO"
40+
debugDocumentVersioning = "YES"
41+
debugServiceExtension = "internal"
42+
allowLocationSimulation = "YES">
43+
<BuildableProductRunnable
44+
runnableDebuggingMode = "0">
45+
<BuildableReference
46+
BuildableIdentifier = "primary"
47+
BlueprintIdentifier = "F47A41CD24EB222C0054DBB2"
48+
BuildableName = "Example iOS.app"
49+
BlueprintName = "Example iOS"
50+
ReferencedContainer = "container:SPDiffable.xcodeproj">
51+
</BuildableReference>
52+
</BuildableProductRunnable>
53+
</LaunchAction>
54+
<ProfileAction
55+
buildConfiguration = "Release"
56+
shouldUseLaunchSchemeArgsEnv = "YES"
57+
savedToolIdentifier = ""
58+
useCustomWorkingDirectory = "NO"
59+
debugDocumentVersioning = "YES">
60+
<BuildableProductRunnable
61+
runnableDebuggingMode = "0">
62+
<BuildableReference
63+
BuildableIdentifier = "primary"
64+
BlueprintIdentifier = "F47A41CD24EB222C0054DBB2"
65+
BuildableName = "Example iOS.app"
66+
BlueprintName = "Example iOS"
67+
ReferencedContainer = "container:SPDiffable.xcodeproj">
68+
</BuildableReference>
69+
</BuildableProductRunnable>
70+
</ProfileAction>
71+
<AnalyzeAction
72+
buildConfiguration = "Debug">
73+
</AnalyzeAction>
74+
<ArchiveAction
75+
buildConfiguration = "Release"
76+
revealArchiveInOrganizer = "YES">
77+
</ArchiveAction>
78+
</Scheme>

Sources/SPDiffable/CellProvider/Models/SPDiffableItem.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Sources/SPDiffable/CellProvider/Models/SPDiffableSection.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Sources/SPDiffable/CellProvider/Models/SPDiffableSnapshot.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Sources/SPDiffable/CellProvider/Models/SPDiffableTextHeaderFooter.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Sources/SPDiffable/CellProvider/Models/SPDiffableWrapperItem.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Sources/SPDiffable/CellProvider/SPDiffableCollectionCellProviders.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Sources/SPDiffable/CellProvider/SPDiffableTableCellProviders.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Sources/SPDiffable/Collection/Models/SPDiffableSideBarButton.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Sources/SPDiffable/Collection/Models/SPDiffableSideBarHeader.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Sources/SPDiffable/Collection/Models/SPDiffableSideBarItem.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Sources/SPDiffable/Collection/SPDiffableCollectionController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Sources/SPDiffable/Collection/SPDiffableSideBarButtonCollectionViewListCell.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Sources/SPDiffable/Collection/SPDiffableSideBarController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Sources/SPDiffable/DataSource/SPDiffableCollectionDataSource.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Sources/SPDiffable/DataSource/SPDiffableTableDataSource.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Sources/SPDiffable/DataSource/SPDiffableTableMediator.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Sources/SPDiffable/Table/Cells/SPDiffableSlider.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

Sources/SPDiffable/Table/Cells/SPDiffableStepper.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The MIT License (MIT)
2-
// Copyright © 2020 Ivan Vorobei (varabeis@icloud.com)
2+
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
33
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)