SetUpView

struct SetUpView : View

SetUpView handles all initial first logins where users choose a username and are then redirected to ContentView which is the main View of the app.

  • The username field stores the currently entered username from the user.

    Declaration

    Swift

    @State
    var username: String { get nonmutating set }
  • Checks if the user has set a username already. If yes we redirect to the HomeView instantly.

    Declaration

    Swift

    @State
    var hasUsername: Bool { get nonmutating set }
  • A model for keeping track of active card in the carousel.

    Declaration

    Swift

    @ObservedObject
    var UIStateCarousel: UIStateModel { get set }
  • Undocumented

    Declaration

    Swift

    @State
    var carouselShown: Bool { get nonmutating set }
  • The current colorscheme of the phone for displaying different visuals depending on light or dark mode.

    Declaration

    Swift

    @Environment
    var colorScheme: ColorScheme { get }
  • The CoreData context object which we save to persistent storage to.

    Declaration

    Swift

    @Environment
    var context: NSManagedObjectContext { get }
  • Undocumented

    Declaration

    Swift

    @FetchRequest
    var conversations: FetchedResults<ConversationEntity> { get }
  • Declaration

    Swift

    var body: some View { get }