Last active
August 16, 2023 16:38
-
-
Save tanner-west/eaf2424c13bd9c2d8939d15b9e09cc30 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
// | |
// 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