Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am kevinbhayes on github.
  • I am kevinbhayes (https://keybase.io/kevinbhayes) on keybase.
  • I have a public key whose fingerprint is 06A7 A960 165C 1096 C327 70B4 3F84 CC9C E44D 0200

To claim this, I am signing this object:

@kevinbhayes
kevinbhayes / ScrollingTextView.swift
Created November 13, 2021 18:50
A SwiftUI Text View that will automatically scroll a single line of text if the container is not wide enough to display it.
//
// ScrollingTextView.swift
//
// Created by Kevin Hayes on 2021-10-30.
//
import SwiftUI
struct ScrollingTextView: View {
@State private var textOffset: CGFloat = 0.0
@kevinbhayes
kevinbhayes / InfinteHScrollView.swift
Created March 20, 2022 20:16
Infinitely Scrolling Horizontal View in SwiftUI
//
// InfinteHScrollView.swift
//
// Created by Kevin Hayes on 2022-03-20.
//
import SwiftUI
struct InfinteHScrollView<Content>: View where Content: View {
var alignment: HorizontalAlignment = .center