Skip to content

Commit

Permalink
项目迁移
Browse files Browse the repository at this point in the history
  • Loading branch information
qzWhy committed Apr 26, 2022
1 parent 416b00c commit b3ed466
Show file tree
Hide file tree
Showing 171 changed files with 11,100 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
platform :ios, '10.0'

use_frameworks!

target 'U17_comic' do

pod 'SnapKit', '~> 4.2.0'
pod 'IQKeyboardManagerSwift'
pod 'JXSegmentedView', '~> 1.2.7'
pod 'Moya'
pod 'SwiftyJSON', '~> 5.0.0'
# pod 'Alamofire', '~> 5.0.0'
pod 'Reachability', '~> 3.2'
pod 'MBProgressHUD'
pod 'CWLog'
pod 'Kingfisher'
pod 'HandyJSON'
pod 'Result'
pod 'SDCycleScrollView'

end
72 changes: 72 additions & 0 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
PODS:
- Alamofire (5.5.0)
- CWLog (1.0.4)
- HandyJSON (5.0.2)
- IQKeyboardManagerSwift (6.5.9)
- JXSegmentedView (1.2.7)
- Kingfisher (6.3.1)
- MBProgressHUD (1.2.0)
- Moya (15.0.0):
- Moya/Core (= 15.0.0)
- Moya/Core (15.0.0):
- Alamofire (~> 5.0)
- Reachability (3.2)
- Result (5.0.0)
- SDCycleScrollView (1.82):
- SDWebImage (>= 5.0.0)
- SDWebImage (5.12.2):
- SDWebImage/Core (= 5.12.2)
- SDWebImage/Core (5.12.2)
- SnapKit (4.2.0)
- SwiftyJSON (5.0.1)

DEPENDENCIES:
- CWLog
- HandyJSON
- IQKeyboardManagerSwift
- JXSegmentedView (~> 1.2.7)
- Kingfisher
- MBProgressHUD
- Moya
- Reachability (~> 3.2)
- Result
- SDCycleScrollView
- SnapKit (~> 4.2.0)
- SwiftyJSON (~> 5.0.0)

SPEC REPOS:
trunk:
- Alamofire
- CWLog
- HandyJSON
- IQKeyboardManagerSwift
- JXSegmentedView
- Kingfisher
- MBProgressHUD
- Moya
- Reachability
- Result
- SDCycleScrollView
- SDWebImage
- SnapKit
- SwiftyJSON

SPEC CHECKSUMS:
Alamofire: 1c4fb5369c3fe93d2857c780d8bbe09f06f97e7c
CWLog: 3cbbe6b7fb51cd120c8ae8fce7e911341468e790
HandyJSON: 9e4e236f5d2dbefad5155a77417bbea438201c03
IQKeyboardManagerSwift: 6e839c575c4aa1078d58a596e41244e77abe918f
JXSegmentedView: eb1cad21f57c2543c00c3e08b8fd3c7ca54f5acd
Kingfisher: 016c8b653a35add51dd34a3aba36b580041acc74
MBProgressHUD: 3ee5efcc380f6a79a7cc9b363dd669c5e1ae7406
Moya: 138f0573e53411fb3dc17016add0b748dfbd78ee
Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
Result: ed341d2f236af425b803e690e9bd8fd0a0cb7c5a
SDCycleScrollView: a0d74c3384caa72bdfc81470bdbc8c14b3e1fbcf
SDWebImage: 240e5c12b592fb1268c1d03b8c90d90e8c2ffe82
SnapKit: fe8a619752f3f27075cc9a90244d75c6c3f27e2a
SwiftyJSON: 2f33a42c6fbc52764d96f13368585094bfd8aa5e

PODFILE CHECKSUM: c26eb973ee5ffab961688df1624f7f8746ac053e

COCOAPODS: 1.11.2
49 changes: 49 additions & 0 deletions README.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 有妖气动漫

#### Description
手动仿写有妖气漫画2022年4月开始,仅为学习用,如有侵权,请联系删除

### 图片

![输入图片说明](gifSimulator-Screen-Recording-iPhone-13-Pro-Max-2022-04-22-at-17.23.51.gif)

| ![输入图片说明](imgSimulator%20Screen%20Shot%20-%20iPhone%2013%20Pro%20Max%20-%202022-04-22%20at%2017.59.24.png) | | ![输入图片说明](imgSimulator%20Screen%20Shot%20-%20iPhone%2013%20Pro%20Max%20-%202022-04-22%20at%2017.59.34.png) |
|---|---|---|
| ![输入图片说明](imgSimulator%20Screen%20Shot%20-%20iPhone%2013%20Pro%20Max%20-%202022-04-22%20at%2017.59.44.png)| | ![输入图片说明](imgSimulator%20Screen%20Shot%20-%20iPhone%2013%20Pro%20Max%20-%202022-04-22%20at%2018.00.02.png)
#### Software Architecture |






Software architecture description

#### Installation

1. xxxx
2. xxxx
3. xxxx

#### Instructions

1. xxxx
2. xxxx
3. xxxx

#### Contribution

1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request


#### Gitee Feature

1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
23 changes: 23 additions & 0 deletions U17_comic/Base/BaseModel.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//
// BaseModel.swift
// Owner
//
// Created by 中时通 on 2022/2/11.
// Copyright © 2022 轻舟. All rights reserved.
//

import UIKit

class BaseModel: NSObject {
var title: String = ""
var isSelect:Bool = false
var image:String = ""


init(title: String) {
super.init()
self.title = title
self.isSelect = false
self.image = ""
}
}
103 changes: 103 additions & 0 deletions U17_comic/Base/BaseNavigationController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
//
// BaseNavigationController.swift
// baseDemo
//
// Created by qingzhou on 2021/9/18.
//

import UIKit

let titleColor = UIColor.colorWithRGBHex(hex: 0x000E18)

class BaseNavigationController: UINavigationController {

var img: UIImage?
var backButton: UIBarButtonItem?

override init(rootViewController: UIViewController) {
super.init(rootViewController: rootViewController)

let navBar = UINavigationBar.appearance(whenContainedInInstancesOf: [BaseNavigationController.self])

let attrs = NSMutableDictionary.init()
attrs[NSAttributedString.Key.foregroundColor] = E18Color
attrs[NSAttributedString.Key.font] = UIFont.systemFont(ofSize: 18, weight: .medium)
navBar.titleTextAttributes = attrs as? [NSAttributedString.Key : Any]
if #available(iOS 13.0, *) {
let appearance = UINavigationBarAppearance()
appearance.configureWithDefaultBackground()
appearance.backgroundImage = UIImage()
appearance.shadowImage = UIImage()
appearance.shadowColor = .clear
// appearance.backgroundColor = UIColor.colorWithRGBHex(hex: 0xF3595A)
appearance.backgroundColor = .white
appearance.largeTitleTextAttributes = [NSAttributedString.Key.foregroundColor: E18Color]

appearance.titleTextAttributes = attrs as! [NSAttributedString.Key : Any]

navBar.tintColor = E18Color

// UINavigationBarAppearance 会覆盖原有的导航栏设置,这里需要重新设置返回按钮隐藏
appearance.backButtonAppearance.normal.titlePositionAdjustment = UIOffset(horizontal: -1000,vertical: 0);
navBar.standardAppearance = appearance
navBar.scrollEdgeAppearance = appearance
navBar.compactAppearance = appearance
} else {
navBar.tintColor = UIColor.white
navBar.barTintColor = UIColor.colorWithRGBHex(hex: 0xF3595A)
navBar.titleTextAttributes = (attrs as! [NSAttributedString.Key : Any])
}
navBar.isTranslucent = false
}

required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

override func viewDidLoad() {
super.viewDidLoad()
self.delegate = self
}

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated);

UIApplication.shared.beginReceivingRemoteControlEvents();
}

override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated);

UIApplication.shared.endReceivingRemoteControlEvents();
}

override func pushViewController(_ viewController: UIViewController, animated: Bool) {

if (self.viewControllers.count > 0) {
viewController.hidesBottomBarWhenPushed = true
}
super.pushViewController(viewController, animated: animated);

if self.viewControllers.count > 1 {
let vc = self.viewControllers[self.viewControllers.count - 1]
vc.navigationItem.leftBarButtonItem = UIBarButtonItem.init(image: UIImage(named: "project_back"), style: .plain, target: self, action: #selector(backClick))
}
}
@objc func backClick(){
self.popViewController(animated: true)
}
override var childForStatusBarStyle: UIViewController? {
return topViewController
}
}

extension BaseNavigationController: UINavigationControllerDelegate {
func navigationController(_ navigationController: UINavigationController, willShow viewController: UIViewController, animated: Bool) {
if viewController.isKind(of: MineViewController.self) || viewController.isKind(of: HomeViewController.self)
{
navigationController.setNavigationBarHidden(true, animated: true)
} else {
navigationController.setNavigationBarHidden(false, animated: false)
}
}
}
Loading

0 comments on commit b3ed466

Please sign in to comment.