Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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 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