TopGit theo dõi lexrus/LTMorphingLabel trên GitHub, đã đạt 8.1k sao. [EXPERIMENTAL] Graceful morphing effects for UILabel written in Swift.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
A morphing UILabel subclass written in Swift, originally designed to mimic Apple's QuickType animation in iOS 8 at WWDC 2014.
Table of Contents
Available Effects
.scale
.evaporate
.fall
.pixelate
.sparkle
.burn
Usage
UIKit
SwiftUI
Requirements
Installation
Swift Package Manager
CocoaPods
Carthage
XCFramework
Accio
Unit Testing
Apps Using LTMorphingLabel
Third-Party Ports
Android
React Native
License
Available Effects
.scale (default)
.evaporate
.fall
.pixelate
.sparkle
.sparkle is built on top of QuartzCore.CAEmitterLayer. There is also a SpriteKit-powered version here.
.burn
.anvil
Usage
UIKit
Since LTMorphingLabel is a drop-in replacement, you can use it like any UILabel by setting its text property, yielding the default effect (.scale):
var exampleLabel = LTMorphingLabel()
exampleLabel.text = "This is a test"
Alternatively, it can be used interactively:
var exampleLabel = LTMorphingLabel()
exampleLabel.text = "This is a test"
exampleLabel.pause()
// Call .updateProgress(progress: Float) for interactive animation
// Note: In this case, animation will stop at 45% and will not complete
// unless called later with 100 as the `progress` float value.
exampleLabel.updateProgress(progress: 45.0)
The effect can be changed by setting the morphingEffect property:
var exampleLabel = LTMorphingLabel()
exampleLabel.text = "This is a test"
exampleLabel.morphingEffect = .burn
SwiftUI
To use LTMorphingLabel in SwiftUI, simply declare it and set its text, effect, font, and textColor properties:
public var body: some View {
VStack {
MorphingText(
"This is a test",
font: UIFont.systemFont(ofSize: 20),
textColor: .black,
textAlignment: .center
)
.frame(maxWidth: 200, maxHeight: 100)
}
}
Similar to its use in UIKit, you can also specify the morphing effect manually (if you do not want to use the default .scale effect):
public var body: some View {
VStack {
MorphingText(
"This is a test",
effect: .burn, // Specify an alternative morphing effect with this line
font: UIFont.systemFont(ofSize: 20),
textColor: .black,
textAlignment: .center
)
.frame(maxWidth: 200, maxHeight: 100)
}
}
Requirements
Xcode 12+
iOS 9.0+ (note that SwiftUI requires iOS 13+)
Installation
Swift Package Manager
Simply add this library to your package manifest or follow instructions on adding a package dependency using Xcode here.
Clone the repo by running git clone https://github.com/lexrus/LTMorphingLabel.git, then open the project with Xcode and press Cmd + U (or, in the menu bar, click Product > Build for > Testing).
Apps Using LTMorphingLabel
Idea by Igor Matyushkin
Speedo[kilo]meter by Alberto Pasca
The Met Challenge by @lazerwalker
Uther by @callmewhy
Reax by Reax Inc
Puzzpic by Moath Othman
Drops by Mark Aron Szulyovszky
Setgraph Workout Log by Arturo Lee
Nihon by KyXu
Lightsync by Marcel Braun
Find by A. Zheng
Third-Party Ports
Android
The Android port of this library is available here.
React Native
The React Native port of this library is available here.
Sponsor
License
This code is distributed under the terms and conditions of the MIT license.
lexrus/LTMorphingLabel có 8.1k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/lexrus/LTMorphingLabel. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
lexrus/LTMorphingLabel có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho lexrus/LTMorphingLabel. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
lexrus/LTMorphingLabel còn đang phát triển không?
Commit gần nhất trên lexrus/LTMorphingLabel là 6 ngày trước (theo timestamp GitHub). Repo có 775 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
lexrus/LTMorphingLabel là gì?
lexrus/LTMorphingLabel (lexrus/LTMorphingLabel) là dự án Swift trên GitHub. Theo mô tả gốc: [EXPERIMENTAL] Graceful morphing effects for UILabel written in Swift.
lexrus/LTMorphingLabel viết bằng ngôn ngữ gì?
lexrus/LTMorphingLabel chủ yếu viết bằng Swift. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
LTMorphingLabel có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về LTMorphingLabel.