Giter Club home page Giter Club logo

jhswiftdemo's Introduction

JhSwiftDemo

A new Swift project - 实现一些常用效果、封装通用组件和工具类

代码不定期更新


实现的一些效果

  • 通用框架搭建、通用基类实现
  • 字体、颜色、Frame、字符串宏定义
  • 添加OC和Swift混合开发Bridging-Header
  • 组件、分类、工具类实现
  • 网络请求封装(Alamofire+Moya+SwiftyJSON)和链式请求
  • 接口管理APIManager
  • 实时网络监测
  • 暗黑模式适配
  • 基础语法使用
  • 基础控件使用
  • UI相关
  • UITableView相关
    • 基类封装(支持上下拉刷新、空数据、网络异常处理)
    • 二次封装上下拉刷新
    • 分页网络请求Demo(SwiftyJSON、MJExtension、HandyJSON、Codable解析方式)
  • UICollectionView相关
    • 基类封装
    • 网络请求Demo(SwiftyJSON解析方式)
  • 三方库使用示例
    • SnapKit

文件结构

  • Configs:各种配置文件和全局方法(其实就是宏定义文件,不过swift没有宏定义这个说法)
  • Manages:数据管理、网络请求和接口管理
  • ProjectMain:业务文件和基类
  • JhCommon:工具文件,封装的组件、分类、工具类
  • Resources:资源文件
  • Vendors:导入的第三方
  • Other:AppDelegate
JhSwiftDemo
├── JhSwiftDemo
   ├── Classes
      ├── Configs
         ├── JhConst.swift
         ├── JhConfigMacro.swift
         ├── JhConfigFrameMacro.swift
         ├── JhConfigFontColorMacro.swift
         └── JhSwiftDemo-Bridging-Header.h
      ├── Managers
         ├── DataManagers
            └── UserDataManager.swift
         └── HttpManagers
             ├── Moya
             ├── 链式
             └── other
      ├── ProjectMain
         ├── Base
            ├── JhBaseCollectionView
               ├── JhBaseCollectionView.swift
               ├── JhBaseCollectionViewCell.swift
               └── JhBaseCollectionViewController.swift
            ├── JhBaseNavigationController.swift
            ├── JhBaseTabBarController.swift
            ├── JhBaseTableView
               ├── JhBaseHeaderView.swift
               ├── JhBaseHeaderView.xib
               ├── JhBaseTableView.swift
               ├── JhBaseTableViewCell.swift
               ├── JhBaseTableViewController.swift
               ├── JhCustumCellTableViewController.swift
               ├── JhEmptyDataView.bundle
               └── JhTextListTableViewController.swift
            ├── JhBaseViewController.swift
            └── Web
                └── JhBaseWebViewController.swift
         ├── DemoList
         ├── Login
         ├── Module1
         ├── Module2
         ├── Module3
         ├── Module4
         └── Newfeature
      ├── JhCommon
         ├── JhComponents
         ├── JhCategory
            ├── OC
            ├── Foundation
            ├── UIKit
            └── Vendors
         └── JhTools
      └── Vendors
      ├── Other
         └── AppDelegate.swift
      ├── Resources
         ├── APPIcon
         └── Images
   ├── Info.plist
   ├── Assets.xcassets
   └── LaunchScreen.storyboard
├── JhSwiftDemo.xcodeproj
├── JhSwiftDemo.xcworkspace
├── JhSwiftDemoTests
├── JhSwiftDemoUITests
├── Podfile
├── Podfile.lock
└── Pods

jhswiftdemo's People

Contributors

iotjin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.