Swiftpack.co -  NuPlay/SwiftUI-SlideText as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
NuPlay/SwiftUI-SlideText
Easy way to make Slide in Text in SwiftUI
.package(url: "https://github.com/NuPlay/SwiftUI-SlideText.git", from: "0.2")

SlideText

스크린샷 2021-04-25 오후 6 25 43 ezgif-3-f92f394bc955
Code PreView
스크린샷 2021-04-24 오후 1 37 54

Code

import SwiftUI
import SlideText

struct SlideText_Test: View {
    var text : String = "SwiftUI-SlideText Test"
    var body: some View {
        VStack{
            SlideText(text: text, frameWidth: 100)
            SlideText(text: text, frameWidth: 150, fontSize: 30, fontWeight: .bold, animationDuration: 5, delay: 1)
        }
    }
}

How To Use

  • text : which one you want to show
  • frameWidth : frameWidth
    • I want to delete this and just follow the view size later
  • animationDuration : animationDuration
  • delay : when the animation reaches the end How long to wait

GitHub

link
Stars: 1
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

V0.2
1 week ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API