Skip to content

Commit

Permalink
upgrade version
Browse files Browse the repository at this point in the history
  • Loading branch information
carefree committed Oct 11, 2022
1 parent 14fc4cb commit 2bd4f17
Show file tree
Hide file tree
Showing 62 changed files with 3,796 additions and 1,183 deletions.
4 changes: 2 additions & 2 deletions EasyListView.podspec
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
Pod::Spec.new do |s|

s.name = "EasyListView"
s.version = "1.2.4"
s.version = "1.3.0"
s.summary = "快速搭建静态及可重用列表"
s.homepage = "https://github.com/moliya/EasyListView"
s.license = "MIT"
s.author = {'Carefree' => '[email protected]'}
s.source = { :git => "https://github.com/moliya/EasyListView.git", :tag => s.version}
s.source_files = "Sources/*"
s.requires_arc = true
s.platform = :ios, '9.0'
s.swift_version = '5.0'
s.dependency 'EasyCompatible'
s.source_files = "Sources/**/*"
end
128 changes: 72 additions & 56 deletions EasyListViewExample.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions EasyListViewExample.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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>
6 changes: 6 additions & 0 deletions EasyListViewExample/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
if #available(iOS 13.0, *) {
let appearance = UINavigationBarAppearance()
appearance.configureWithOpaqueBackground()
UINavigationBar.appearance().scrollEdgeAppearance = appearance
UINavigationBar.appearance().standardAppearance = appearance
}
return true
}

Expand Down
29 changes: 16 additions & 13 deletions EasyListViewExample/Demo1/FormListController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import UIKit
import EasyListView

class FormListController: UIViewController {

Expand Down Expand Up @@ -37,17 +38,17 @@ class FormListController: UIViewController {
view.backgroundColor = #colorLiteral(red: 0.8979505897, green: 0.8981012702, blue: 0.8979307413, alpha: 1)
view.height(0.5)

self.scrollView.easy.append(view)
self.scrollView.easy.appendView(view)
}

scrollView.easy.append({
scrollView.easy.appendView {
let label = UILabel()
label.numberOfLines = 0
label.font = .systemFont(ofSize: 14)
label.textColor = .lightGray
label.text = "Section Title"
return label
}(), with: UIEdgeInsets(top: 10, left: 16, bottom: 0, right: 16))
}.insets(UIEdgeInsets(top: 10, left: 16, bottom: 0, right: 16))

let nameCell: UIView = {
let cell = EasyListCell()
Expand All @@ -70,7 +71,7 @@ class FormListController: UIViewController {

return cell
}()
scrollView.easy.append(nameCell, spacing: 10)
scrollView.easy.appendView(nameCell).spacing(10)

addSeparator()

Expand All @@ -94,7 +95,7 @@ class FormListController: UIViewController {

return cell
}()
scrollView.easy.append(emailCell)
scrollView.easy.appendView(emailCell)

addSeparator()

Expand Down Expand Up @@ -122,7 +123,7 @@ class FormListController: UIViewController {

return cell
}()
scrollView.easy.append(birthdayCell, for: "birthday", spacing: 0)
scrollView.easy.appendView(birthdayCell).identifier("birthday")

addSeparator()

Expand All @@ -141,16 +142,16 @@ class FormListController: UIViewController {

return cell
}()
scrollView.easy.append(switchCell)
scrollView.easy.appendView(switchCell)

scrollView.easy.append({
scrollView.easy.appendView {
let label = UILabel()
label.numberOfLines = 0
label.font = .systemFont(ofSize: 16)
label.textColor = .lightGray
label.text = "1.AAA\n2.BBB\n3.CCC"
return label
}(), with: UIEdgeInsets(top: 10, left: 16, bottom: 0, right: 16))
}.insets(UIEdgeInsets(top: 10, left: 16, bottom: 0, right: 16))

let inputView: UIView = {
let view = UIView()
Expand Down Expand Up @@ -178,7 +179,7 @@ class FormListController: UIViewController {

return view
}()
scrollView.easy.append(inputView, spacing: 10)
scrollView.easy.appendView(inputView).spacing(10)

let button = UIButton(type: .custom)
button.setTitle("Done", for: .normal)
Expand All @@ -187,7 +188,7 @@ class FormListController: UIViewController {
button.clipsToBounds = true
button.height(45)
button.addTarget(self, action: #selector(tapDone), for: .touchUpInside)
scrollView.easy.append(button, with: UIEdgeInsets(top: 40, left: 16, bottom: 20, right: 16))
scrollView.easy.appendView(button).insets(UIEdgeInsets(top: 40, left: 16, bottom: 20, right: 16))
}

deinit {
Expand All @@ -196,7 +197,7 @@ class FormListController: UIViewController {

func tapBirthdayCell() {
if let _ = scrollView.easy.getElement(identifier: "birthdaySelector") as? UIDatePicker {
scrollView.easy.delete("birthdaySelector")
scrollView.easy.deleteView("birthdaySelector")
birthdayLabel.textColor = #colorLiteral(red: 0.4, green: 0.4, blue: 0.4, alpha: 1)
return
}
Expand All @@ -216,7 +217,9 @@ class FormListController: UIViewController {
}
birthdayLabel.textColor = #colorLiteral(red: 0.9098039269, green: 0.4784313738, blue: 0.6431372762, alpha: 1)

scrollView.easy.insert(picker, after: "birthday", with: .zero, for: "birthdaySelector", completion: nil)
scrollView.easy.beginUpdates()
scrollView.easy.insertView(picker, after: "birthday").identifier("birthdaySelector")
scrollView.easy.endUpdates()
}

@objc func datePickerChanged(_ sender: UIDatePicker) {
Expand Down
5 changes: 3 additions & 2 deletions EasyListViewExample/Demo2/UserListController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import UIKit
import EasyListView

class UserListController: UIViewController {

Expand Down Expand Up @@ -71,7 +72,7 @@ class UserListController: UIViewController {

return cell
}
self.scrollView.easy.append(view)
self.scrollView.easy.appendView(view)
}

if self.scrollView.header?.isRefreshing == true {
Expand All @@ -96,7 +97,7 @@ class UserListController: UIViewController {
cell.set(name: self.users[index], avatar: UIImage(named: "avatar"))
return cell
}
self.scrollView.easy.append(view)
self.scrollView.easy.appendView(view)
}

self.scrollView.easy.endUpdates()
Expand Down
5 changes: 3 additions & 2 deletions EasyListViewExample/Main/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import UIKit
import EasyListView

class MainViewController: UIViewController {

Expand All @@ -25,7 +26,7 @@ class MainViewController: UIViewController {

return cell
}()
scrollView.easy.append(cell1, spacing: 10)
scrollView.easy.appendView(cell1).spacing(10)

let cell2: UIView = {
let cell = EasyListCell()
Expand All @@ -37,6 +38,6 @@ class MainViewController: UIViewController {

return cell
}()
scrollView.easy.append(cell2, spacing: 0.5)
scrollView.easy.appendView(cell2).spacing(0.5)
}
}
3 changes: 2 additions & 1 deletion EasyListViewExample/Main/ObjCTestController.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import "ObjCTestController.h"
#import "EasyListViewExample-Swift.h"
#import <EasyListView-Swift.h>

@interface ObjCTestController ()

Expand All @@ -21,6 +21,7 @@ - (void)viewDidLoad {
EasyListView *listView = [[EasyListView alloc] init];
[listView easy_beginUpdates];
[listView easy_endUpdatesWithCompletion:nil];

}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ open class ESRefreshHeaderAnimator: UIView, ESRefreshProtocol, ESRefreshAnimator
open var pullToRefreshDescription = NSLocalizedString("Pull to refresh", comment: "") {
didSet {
if pullToRefreshDescription != oldValue {
titleLabel.text = pullToRefreshDescription;
titleLabel.text = pullToRefreshDescription
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source 'https://cdn.cocoapods.org/'
use_frameworks!
platform :ios, '9.0'

target 'EasyListViewExample' do
pod 'EasyListView', :path => './'
end
23 changes: 23 additions & 0 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
PODS:
- EasyCompatible (1.0)
- EasyListView (1.3.0):
- EasyCompatible

DEPENDENCIES:
- EasyListView (from `./`)

SPEC REPOS:
trunk:
- EasyCompatible

EXTERNAL SOURCES:
EasyListView:
:path: "./"

SPEC CHECKSUMS:
EasyCompatible: 571e10cf69d018b820f65cd6b99f76573313db6e
EasyListView: ac1b3dcd19ef3fb5b2ea48b74b91a8171cc723e8

PODFILE CHECKSUM: 85d9c6237193f3c7e89929aa9b3c1282aad65d38

COCOAPODS: 1.11.3
21 changes: 21 additions & 0 deletions Pods/EasyCompatible/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Pods/EasyCompatible/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions Pods/EasyCompatible/Sources/EasyCompatible.swift

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions Pods/Local Podspecs/EasyListView.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2bd4f17

Please sign in to comment.