在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:germc/Atlas-iOS开源软件地址:https://github.com/germc/Atlas-iOS开源编程语言:Objective-C 98.0%开源软件介绍:Atlas is a lightweight, flexible set of user interface components designed to enable developers to quickly and easily integrate native communications experiences into their applications. It was designed and built from the ground up to integrate with LayerKit, the native iOS SDK for accessing the Layer communications platform. LayerKit provides developers with a simple, object oriented interface to the rich messaging capabilities provided by the Layer platform. Atlas, in turn, provides ready-made UI components that expose these capabilities directly to users. OverviewAtlas provides several complete user interface experiences as well as a large library of individual views. It was designed to address three use cases simulatenously:
Atlas is deeply and directly integrated with LayerKit. This enables maximum integration with the communications API's and keeps the user interface components very clean, simple and lightweight. LayerKit provides three foundational models (Conversations, Messages, and Message Parts) and a querying system for accessing the messaging data. These models and the querying functionality are used to drive the Atlas UI components. Example AppTo make it easier to get started with Atlas, we've provided the Atlas Messenger example application. Build instructions accompany the source code on the repository. Alternately, you can check out Atlas within a Layer sandbox of your very own by visiting the Experience Atlas page. API Quick StartThe table below details the most important classes in Atlas and is hyperlinked directly to the current header file. All classes are fully documented.
InstallationAtlas can be installed directly into your application via CocoaPods or by directly importing the source code files. Please note that Atlas has a direct dependency on LayerKit that must be satisfied in order to build the components. CocoaPods InstallationThe recommended path for installation is CocoaPods. CocoaPods provides a simple, versioned dependency management system that automates the tedious and error prone aspects of manually configuring libraries and frameworks. You can add Atlas to your project via CocoaPods by doing the following: $ sudo gem install cocoapods
$ pod setup Now create a pod 'Atlas' Complete the installation by executing: $ pod install These instructions will setup your local CocoaPods environment and import Atlas into your project. Source Code InstallationIf you wish to install Atlas directly into your application from source, then clone the repository and add code and resources to your application:
Build and run your project to verify installation was successful. Getting Started
MIME TypesLayer Messages include an arbitrary number of message parts. Each message part is transported with a developer assigned MIME Type. Atlas utilizes MIME Type information to determine how to handle a particular message part. Developers must take care to assign an appropriate MIME Type for the content or else Atlas will be unable to handle it. For convenience, Atlas exports a number of constants for the MIME Types it supports: NSString *ATLMIMETypeTextPlain; // text/plain
NSString *ATLMIMETypeImagePNG; // image/png
NSString *ATLMIMETypeImageJPEG; // image/jpeg
NSString *ATLMIMETypeLocation; // location Component DetailsATLConversationListViewControllerThe InitializationThe ATLConversationListViewController *viewController = [ATLConversationListViewController conversationListViewControllerWithLayerClient:layerClient]; CustomizationThe [[ATLConversationTableViewCell appearance] setConversationLabelFont:[UIFont boldSystemFontOfSize:14]];
[[ATLConversationTableViewCell appearance] setConversationLabelColor:[UIColor blackColor]]; ATLConversationViewControllerThe InitializationATLConverationViewController *viewController = [ATLConversationViewController conversationViewControllerWithConversation:conversation layerClient:self.layerClient]; CustomizationThe [[ATLOutgoingMessageCollectionViewCell appearance] setMessageTextColor:[UIColor whiteColor]];
[[ATLOutgoingMessageCollectionViewCell appearance] setMessageTextFont:[UIFont systemFontOfSize:14]];
[[ATLOutgoingMessageCollectionViewCell appearance] setBubbleViewColor:[UIColor blueColor]]; ATLParticipantPickerThe InitializationThe ATLParticipantPickerSortType sortType = ATLParticipantPickerControllerSortTypeFirst;
ATLParticipantPickerController *controller = [ATLParticipantPickerController participantPickerWithDataSource:dataSource
sortType:sortType]; CustomizationThe [[ATLParticipantTableViewCell appearance] setTitleColor:[UIColor blackColor]];
[[ATLParticipantTableViewCell appearance] setTitleFont:[UIFont systemFontOfSize:14]]; ATLMessageInputToolbarThe InitializationThe
Once initialized, the controller manages resizing itself relative to its content, and animation so that it sticks to the top of the keyboard. PresentersWhile the Atlas does provide highly customizable TableView and CollectionView cells, advanced customization of the UI components can be done by implementing custom cells and setting the component's The presenters are ContributingAtlas is an Open Source project maintained by Layer. Feedback and contributions are always welcome and the maintainers try to process patches as quickly as possible. Feel free to open up a Pull Request or Issue on Github. LicenseAtlas is licensed under the terms of the Apache License, version 2.0. Please see the LICENSE file for full details. ContactAtlas was developed in San Francisco by the Layer team. If you have any technical questions or concerns about this project feel free to reach out to Layer Support. Credits |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论