mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
5d79572fd9
Added an `Avatar` property to the `AvatarView` Replaced the `imageView` in the `MessagesCollectionViewCell` with the `AvatarView` Moved the `Avatar.playground` to the example project so users can play around and learn it capabilities. Updated the example project and abstracted the `sampleData` to its own file. Updated the organization for the project to `MessageKit` instead of `Hex bits`
21 lines
389 B
Swift
21 lines
389 B
Swift
//
|
|
// Avatar.swift
|
|
// MessageKit
|
|
//
|
|
// Created by Dan Leonard on 8/7/17.
|
|
// Copyright © 2017 MessageKit. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
public struct Avatar {
|
|
|
|
public let image: UIImage?
|
|
public var initals: String = "?"
|
|
|
|
public init(image: UIImage? = nil, initals: String = "?") {
|
|
self.image = image
|
|
self.initals = initals
|
|
}
|
|
|
|
}
|