huaf22/zhihuSwiftDemo
已實現的功能
- 首頁左滑菜單界面
- 文章詳情界面
- 文章詳情界面上下切換的動畫
- 主題文章界面
待實現的功能
- 文章后臺緩存功能
- 首頁海報獲取更新
- 滑動菜單界面的優化
- bugs
- ...
截圖
Paste_Image.png
Paste_Image.png
Paste_Image.png
Paste_Image.png
項目結構
├── AppDelegate.swift
├── BCComponents
│ ├── Article
│ │ ├── View
│ │ │ ├── WLYArticleDetailCell.swift
│ │ │ ├── WLYArticleDetailRefreshView.swift
│ │ │ ├── WLYArticleDetailToolBarView.swift
│ │ │ ├── WLYArticleNavigationBar.swift
│ │ │ └── WLYArticleTableViewCell.swift
│ │ ├── WLYArticleChannelViewController.swift
│ │ ├── WLYArticleDetailCollectionViewController.swift
│ │ └── WLYArticleListViewController.swift
│ └── Home
│ ├── View
│ │ ├── HomeSideMenuFooterView.swift
│ │ └── HomeSideMenuHeaderView.swift
│ └── WLYHomeMenuViewController.swift
├── Library
│ ├── ArticleHTMLParser.swift
│ ├── UIKit
│ │ ├── UIColor+WLYCommon.swift
│ │ ├── UIColor+WLYExtension.swift
│ │ ├── UIScrollView+WLYPanGestureAllowEventPass.swift
│ │ └── UIView+WLYExtension.swift
│ ├── URLArrayTransform.swift
│ ├── Vendors
│ └── WLYLog.swift
├── Models
│ ├── WLYArticle.swift
│ ├── WLYArticleDetail.swift
│ ├── WLYArticleTheme.swift
│ ├── WLYArticleThemeResult.swift
│ ├── WLYDailyArticle.swift
│ ├── WLYEditor.swift
│ └── WLYThemeArticles.swift
├── Services
│ ├── ArticleService.swift
│ ├── BaseServiceAPI.swift
│ └── WLYArticleCacheService.swift
├── ViewControllers
│ ├── WLYSideMenuViewController.swift
│ ├── WLYTableViewController.swift
│ └── WLYViewController.swift
└── Views
├── UIScrollView+WLYPullToRefresh.swift
├── WLYHorizontalLayoutButton.swift
├── WLYPullToRefreshView.swift
├── WLYRefreshLoadingView.swift
├── WLYScrollImageView.swift
├── WLYTableViewCell.swift
└── WLYVerticalLayoutButton.swift
知乎日報 API
使用的開源庫
Thanks to all of you