Last active
January 13, 2020 15:01
-
-
Save letatas/c0f494c75bde791888701ca0322fe6b5 to your computer and use it in GitHub Desktop.
ReusableXibViews - MessageView - v1
This file contains hidden or 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
// | |
// MessageView.swift | |
// ReusableXibViews | |
// | |
// Created by Matthias Lamoureux on 13/01/2020. | |
// Copyright © 2020 QSC. All rights reserved. | |
// | |
import UIKit | |
class MessageView: UIView { | |
@IBOutlet weak var messageLabel: UILabel! | |
@IBOutlet weak var messageIcon: UIImageView! | |
var message : String = "" { | |
didSet { messageLabel.text = message } | |
} | |
var symbol : String = "" { | |
didSet { messageIcon.image = UIImage(systemName: symbol) } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment