-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
112 additions
and
19 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// NormalTestViewController.swift | ||
// RZRichTextView_Example | ||
// | ||
// Created by rztime on 2023/10/20. | ||
// Copyright © 2023 CocoaPods. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
import QuicklySwift | ||
import RZColorfulSwift | ||
|
||
class NormalTestViewController: UIViewController { | ||
let textView = UITextView().qbackgroundColor(.lightGray) | ||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
|
||
self.view.backgroundColor = .white | ||
self.view.qbody([ | ||
textView.qmakeConstraints({ make in | ||
make.left.right.equalToSuperview().inset(10) | ||
make.top.equalToSuperview().inset(100) | ||
make.height.equalTo(400) | ||
}) | ||
]) | ||
|
||
textView.rz.colorfulConfer { confer in | ||
confer.text("!1111111111")?.font(.systemFont(ofSize: 16)) | ||
confer.image(.qimageBy(color: .red, size: .init(width: 1000, height: 100))) | ||
} | ||
textView.layoutIfNeeded() | ||
} | ||
|
||
|
||
} |
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
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
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
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
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
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