Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Last Checked 17.09.2020
# carthage update --use-xcframeworks --cache-builds --platform iOS

github "medbee/InputBarAccessoryView" "medbee/carthage"
1 change: 1 addition & 0 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "medbee/InputBarAccessoryView" "fb2db819d23395aef753a9106c3bc195ba7842d9"
747 changes: 747 additions & 0 deletions MessageKit.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
66 changes: 66 additions & 0 deletions MessageKit.xcodeproj/xcshareddata/xcschemes/MessageKit.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CDD69A532AE8C17B00BBDC83"
BuildableName = "MessageKit.framework"
BlueprintName = "MessageKit"
ReferencedContainer = "container:MessageKit.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CDD69A532AE8C17B00BBDC83"
BuildableName = "MessageKit.framework"
BlueprintName = "MessageKit"
ReferencedContainer = "container:MessageKit.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
13 changes: 12 additions & 1 deletion Sources/Views/Cells/SystemMessageCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,16 @@
import UIKit

/// A subclass of `MessageContentCell` used to display system messages.
open class SystemMessageCell: UICollectionViewCell {
open class SystemMessageCell: MessageCollectionViewCell {

/// The label used to display the message's text.
open var label = UILabel()

/// The `MessageCellDelegate` for the cell.
open weak var delegate: MessageCellDelegate?

// MARK: - Lifecycle

public override init(frame: CGRect) {
super.init(frame: frame)
contentView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
Expand Down Expand Up @@ -70,6 +75,12 @@ open class SystemMessageCell: UICollectionViewCell {
fatalError("Message must be of kind .system to be displayed in SystemMessageCell")
}

delegate = messagesCollectionView.messageCellDelegate

label.attributedText = systemMessage
}

open override func handleTapGesture(_: UIGestureRecognizer) {
delegate?.didTapMessage(in: self)
}
}