Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tanner-west/eaf2424c13bd9c2d8939d15b9e09cc30 to your computer and use it in GitHub Desktop.
Save tanner-west/eaf2424c13bd9c2d8939d15b9e09cc30 to your computer and use it in GitHub Desktop.
//
// TextViewProvider.swift
// SwiftViewSchool
//
// Created by Tanner West on 8/16/23.
//
import Foundation
import UIKit
@objc class TextViewProvider: NSObject {
@objc func createTextView() -> UITextView {
let textView = UITextView(frame: CGRect(x: 0, y: 0, width: 200, height: 100))
textView.text = "Hello, from Swift World!"
textView.font = UIFont.systemFont(ofSize: 48)
textView.textColor = UIColor.blue
return textView
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment