All Projects → manofit → Swift_project

manofit / Swift_project

原OC项目用swift实现,纯swift项目,可作为学习swift的demo,包含多个自定义控件,并且进行封装网络请求库,结构清晰。

Programming Languages

swift
15916 projects
swift4
162 projects

Projects that are alternatives of or similar to Swift project

Todayx
🌈Flutter App:🎊「今日份的X」(每天推荐一个:图片、诗歌、名言、音乐、乐评、高等数学、两种配色、化学方程式、Github Repo、知乎问题、文章)
Stars: ✭ 128 (-3.76%)
Mutual labels:  ios-app, demo-app, demo
Progressbutton
Custom ProgressButton
Stars: ✭ 52 (-60.9%)
Mutual labels:  progress, button
React Native Really Awesome Button
React Native button component. Awesome Button is a 3D at 60fps, progress enabled, social ready, extendable, production ready component that renders an awesome animated set of UI buttons. 📱
Stars: ✭ 988 (+642.86%)
Mutual labels:  progress, button
Fullscreencamera
A Full Screen Camera App written in Swift
Stars: ✭ 131 (-1.5%)
Mutual labels:  ios-app, demo-app
React Awesome Button
React button component. Awesome button is a 3D UI, progress, social and share enabled, animated at 60fps, light weight, performant, production ready react UI button component. 🖥️ 📱
Stars: ✭ 943 (+609.02%)
Mutual labels:  progress, button
Avsqldebugger
A Simple Core Data Debugger that will look inside your apps DB
Stars: ✭ 30 (-77.44%)
Mutual labels:  ios-app, ios-demo
Vue Progress Button
Animated button for VueJS
Stars: ✭ 71 (-46.62%)
Mutual labels:  progress, button
React Progress Button
🌀 Simple react.js component for an inline progress indicator
Stars: ✭ 516 (+287.97%)
Mutual labels:  progress, button
Zwmusicdownloadview
精仿唱吧App音乐下载进度按钮,完美快速集成使用(A beautiful musical download progress button which can show the progress and click to play Music after finishing)
Stars: ✭ 88 (-33.83%)
Mutual labels:  progress, button
Circleci Demo Python Django
Example Django application running on CircleCI
Stars: ✭ 100 (-24.81%)
Mutual labels:  demo-app, demo
Swiftcocoadsl
An easy way to write iOS UI
Stars: ✭ 103 (-22.56%)
Mutual labels:  ios-app, ios-demo
React Natives App
App for the React & React Native developer community as a demo project for the React Native meetups in Germany
Stars: ✭ 20 (-84.96%)
Mutual labels:  ios-app, demo-app
Iosproject
iOS project of collected some demos for iOS App, use Objective-C
Stars: ✭ 5,357 (+3927.82%)
Mutual labels:  ios-app, ios-demo
Cocoaasyncsocket demo
基于AsyncSocket搭建即时通讯体系 . 包含TCP连接 , 消息发送 , 消息接收 , 心跳处理 ,断网重连 , 消息超时 , 消息分发 , 数据库结构设计 , 消息丢失等 . 以及UI设计, 文本表情消息/语音消息/图片消息/视频消息/文件消息/撤回消息/提示语消息的实现思路讲解
Stars: ✭ 981 (+637.59%)
Mutual labels:  ios-app, ios-demo
Ios Viper Architecture
This repository contains a detailed sample app that implements VIPER architecture in iOS using libraries and frameworks like Alamofire, AlamofireImage, PKHUD, CoreData etc.
Stars: ✭ 578 (+334.59%)
Mutual labels:  ios-app, alamofire
Netclient Ios
Versatile HTTP Networking in Swift
Stars: ✭ 117 (-12.03%)
Mutual labels:  alamofire, progress
Stripe Connect Rocketrides
Sample on-demand platform built on Stripe: Connect onboarding for pilots, iOS app for passengers to request rides.
Stars: ✭ 426 (+220.3%)
Mutual labels:  demo-app, demo
Example Ios Apps
 A curated list of Open Source example iOS apps developed in Swift. An amazing list for people who are beginners and learning ios development and for ios developers who need any example app or feature.
Stars: ✭ 461 (+246.62%)
Mutual labels:  ios-app, ios-demo
Phphub Ios
PHPHub for iOS is the universal iPhone and iPad application for PHPHub
Stars: ✭ 1,223 (+819.55%)
Mutual labels:  ios-app, demo-app
Cameraxdemo
A sample camera app with CameraX API from Android Jetpack
Stars: ✭ 112 (-15.79%)
Mutual labels:  demo-app, demo

swift_project

之前的项目,用swift敲了一遍,目前主体已经完成,只剩下一些小页面了,算是自己认真对待的一份代码。有意见和建议请指出,万分感谢。

另外,目前运行项目会报错,原因是由于版权问题,所以里面的接口和图片名称都没加上。后面我会加上运行效果图,到时候大家可以根据效果图查看代码了。

自定义控件

这里面,我自己封装了一些经常用到的控件,如Segment、Refresh、PictureShow、Progress等,可以很方便地调用。

  • GJSegment

GJSegment

  • GJRefresh

GJRefreshGJRefresh

  • GJPictureShow

GJPictureShow

  • GJProgressView

GJProgressView

后面还会继续对项目里面的一些其他内容,比如倒计时按钮进行封装。

代码结构

  • 项目主要采用MVC的设计模式,在ViewControllers文件夹中包含所有的页面:登录相关、主页、出借、个人中心。每一块下面又分为三个文件夹:Model、View、Controller。

  • 封装了网络请求,基于Alamofire。文件夹NetWork下有GJNetwork、GJNetWorkTool、GJNetworkReachability三个类,其中GJNetworkReachability用来检查网络状态,GJNetWorkTool用来实现每一个网络请求,GJNetwork是直接与Alamofire交互的类。

  • NetWorkFile类存放所有请求的URL;VariableDefineFile类存放所有的变量,相当于宏。

  • GJUtil是工厂类,里面封装了几个常用UI控件的创建方法,还包含一些类似于检测手机号码、MD5加密、base64加密等常用方法。

  • Base文件夹下是几个基类。GJBaseViewController是所有视图的父类,GJBaseWebViewController是所有需要加载H5页面的父类。

项目才创建不久,平时编写的时候难免会有纰漏的地方,请大家不吝赐教。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].