Barstool Engineering
  • Home
  • GitHub
  • Jobs
Subscribe
Tagged

swiftUI

A collection of 3 posts

Barstool Sports Tab bar
iOS

SwiftUI Quick Tip - override tab selection in TabView

A TabView is a SwiftUI view that presents a tab bar at the bottom of your app for navigation between multiple views. The Barstool sports tab bar has 5 tab items. 4 of these tab items behave as you'd expect, you tab on it and a new view is presented.

  • Thomas Rademaker
Thomas Rademaker Feb 2, 2023 • 3 min read
iOS Quick Tip - Support User Customization of Appearance Theme
iOS

iOS Quick Tip - Support User Customization of Appearance Theme

iOS 13 introduced official system support for dark mode. I prefer light mode for everything because I'm a normal person, or maybe I'm just a boomer, but I digress. XCAssets color sets make it very simple to support dark and light mode in your apps. (This post will not teach

  • Thomas Rademaker
Thomas Rademaker Jul 14, 2022 • 2 min read
SwiftUI Quick Tip - Custom Navigation Bar Title
iOS

SwiftUI Quick Tip - Custom Navigation Bar Title

You can set the navigation bar title in SwiftUI with the following view modifier, .navigationBarTitle("My Title") But what if you don't want the Title to be a String or a LocalizedStringKey? That is where the .toolbar view modifier and the principal ToolbarItemPlacement object come in to play.

  • Thomas Rademaker
Thomas Rademaker Mar 30, 2022 • 1 min read
Barstool Engineering © 2023
  • Barstool Sports
  • Barstool Bets
  • Rough N Rowdy
  • One Bite
  • Data & Privacy
Powered by Ghost