项目
在 GitHub 查看
joekndy/MarqueeText
关于
SwiftUI 中的跑马灯(滚动文本)效果。
其他项目实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文MarqueeText
A SwiftUI Marquee or "scrolling text" effect found in Apple native apps. For when one line isn't enough, but two is just too much 😉

Usage
Add this repository as a Swift Package Dependency to your project. You find the option in Xcode unter "File > Swift Packages > Add Package Dependency...". Paste the link to this project in and voila!
import SwiftUI
import MarqueeText
struct ContentView: View {
var body: some View {
MarqueeText(
text: "A subtitle that is way too long, but it scrolls homie",
font: UIFont.preferredFont(forTextStyle: .subheadline),
leftFade: 16,
rightFade: 16,
startDelay: 3
)
}
}
License
You can use this software under the terms and conditions of the MIT License.
Joe Kennedy © 2020
探索相关项目
加载中…