Created
March 10, 2020 10:32
-
-
Save b-onc/bfeb6c504e381e8b8fe737393e3c806f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
style.incomingMessage.avatarViewStyle = nil | |
style.incomingMessage.backgroundColor = UIColor(red: 233/255, green: 233/255, blue: 235/255, alpha: 1) | |
style.incomingMessage.borderColor = .clear | |
style.incomingMessage.textColor = .black | |
style.incomingMessage.font = .systemFont(ofSize: 17, weight: .regular) | |
style.incomingMessage.edgeInsets.left = 16 | |
style.incomingMessage.infoFont = .systemFont(ofSize: 0) | |
style.incomingMessage.nameFont = .systemFont(ofSize: 0) | |
style.outgoingMessage.avatarViewStyle = nil | |
style.outgoingMessage.backgroundColor = UIColor(red: 35/255, green: 126/255, blue: 254/255, alpha: 1) | |
style.outgoingMessage.borderColor = .clear | |
style.outgoingMessage.textColor = .white | |
style.outgoingMessage.font = .systemFont(ofSize: 17, weight: .regular) | |
style.outgoingMessage.edgeInsets.right = 16 | |
style.outgoingMessage.infoFont = .systemFont(ofSize: 0) | |
style.composer.backgroundColor = .white | |
style.composer.placeholderTextColor = UIColor.gray.withAlphaComponent(0.5) | |
style.composer.placeholderText = "iMessage" | |
style.composer.height = 40 | |
style.composer.font = .systemFont(ofSize: 18) | |
style.composer.cornerRadius = style.composer.height / 2 | |
let borderColor = UIColor.gray.withAlphaComponent(0.6) | |
let borderWidth: CGFloat = 1 | |
style.composer.states = [.active: .init(tintColor: borderColor, borderWidth: borderWidth), | |
.edit: .init(tintColor: borderColor, borderWidth: borderWidth), | |
.disabled: .init(tintColor: borderColor, borderWidth: borderWidth), | |
.normal: .init(tintColor: borderColor, borderWidth: borderWidth)] | |
style.composer.edgeInsets.left = 60 | |
style.composer.edgeInsets.right = 16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment