A WeChat alternative. Written in Swift 5.
TSWeChat - A WeChat alternative, updated to Swift 5. 中文说明
TSChatImageCellis drawn by using
Mask Layer. The chat background can be changed freely so that UI will look perfect.
wavfiles can be automatically converted into
amrfiles which facilite file transfer to Android devices. Both of the two type files have been doing cache.
TSChatVoiceCell. It will automatically check the cache and download it by Alamofire.
MD5value file name.
Modelsare created via ObjectMapper which is easy to convert model objects (classes and structs) from JSON.
Run
pod installin the
Terminaland then run
TSWeChat.xcworkspaceto see all the views.
Directory name |
Introduction |
---|---|
Classes | To deposit different folders like ViewController, View. Sub directories are divided based on business logic, Such as Message, Address Book, Tabbar, Me, Loginand etc, divided according to their functions. |
Classes/CoreModule | To deposit encapsulation of business logic of basic classes, like HttpManager, Models, ApplicationManager and etc. |
General | To deposit reused View and Classrelated with business logic, such as color extension. |
Helpers | Non-business logic extension, such as: UIView+Extension.swift, UIImage+Resize.swiftand etc. |
Macro | To deposit macros and constant definitions used in the whole application, such as Notificationsname , and the third party librarie's keys. |
Resources | Resources. Such as Assets.xcassets, Media.xcassets, JSON files, media files, plist filesand etc. |
Vendor | To deposit the third party liabraries that cannot be installed by Cocoapods. |
Supporting Files | To deposit the original files |
Scripts | APNs script, export IPA file script and etc. |
Sketch | To deposit the original Sketch files. All the recourses in the project are come from the WeChat IPA folder, but some images I can't find. So I decided to do it myself. Yeah, I love design, sometimes coder become a designer is feeling good. XD |
TSWeChat is released under the MIT license. See LICENSE for details.