[ABANDONED] Mastodon iOS client.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
707 B

  1. //
  2. // AttachmentInputView.swift
  3. // elpha-ios
  4. //
  5. // Created by Dwayne Harris on 11/17/18.
  6. // Copyright © 2018 Elpha. All rights reserved.
  7. //
  8. import UIKit
  9. class AttachmentInputView: UIView {
  10. @IBOutlet var contentView: UIView!
  11. override init(frame: CGRect) {
  12. super.init(frame: frame)
  13. setup()
  14. }
  15. required init?(coder aDecoder: NSCoder) {
  16. super.init(coder: aDecoder)
  17. setup()
  18. }
  19. private func setup() {
  20. Bundle.main.loadNibNamed("AttachmentInputView", owner: self, options: nil)
  21. addSubview(contentView)
  22. contentView.frame = self.bounds
  23. contentView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
  24. }
  25. }