Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joekndy/MarqueeText
Marquee or "scrolling text" effect in SwiftUI
https://github.com/joekndy/MarqueeText
Last synced: about 2 months ago
JSON representation
Marquee or "scrolling text" effect in SwiftUI
- Host: GitHub
- URL: https://github.com/joekndy/MarqueeText
- Owner: joekndy
- Created: 2020-10-12T18:53:22.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-19T20:11:05.000Z (8 months ago)
- Last Synced: 2024-08-03T18:13:51.346Z (5 months ago)
- Language: Swift
- Homepage:
- Size: 262 KB
- Stars: 255
- Watchers: 3
- Forks: 42
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-swiftui-libraries - MarqueeText - Marquee or "scrolling text" effect in SwiftUI (Text / Content)
README
# 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 😉
![MarqueeText Demo](readme/demo.gif)
## 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!```swift
import SwiftUI
import MarqueeTextstruct 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