Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions NativeAppTemplate/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -285,14 +285,10 @@ enum Strings {
static let email = "Email"
static let password = "Password"

static let onboardingDescription1 = "Welcome to NativeAppTemplate."
static let onboardingDescription2 = "Sign in to manage your shops and item tags."
static let onboardingDescription3 = "Organize your work across multiple organizations."
static let onboardingDescription4 = "Invite teammates to collaborate."
static let onboardingDescription5 = "Track item tags with a simple idle/completed state."
static let onboardingDescription6 = "Create, edit, and delete item tags from your shop."
static let onboardingDescription7 = "Switch between personal and shared organizations."
static let onboardingDescription8 = "Have fun!"
static let onboardingDescription1 = "Onboarding description 1."
static let onboardingDescription2 = "Onboarding description 2."
static let onboardingDescription3 = "Onboarding description 3."
static let onboardingDescription4 = "Onboarding description 4."

// MARK: Other

Expand Down
22 changes: 6 additions & 16 deletions NativeAppTemplate/Login/OnboardingRepository.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,14 @@
//

import Foundation
import OrderedCollections

@MainActor @Observable class OnboardingRepository: OnboardingRepositoryProtocol {
var onboardings: [Onboarding] = []
let onboardingsDictionary: OrderedDictionary = [
1: false,
2: false,
3: false,
4: true,
5: false,
6: false,
7: true,
8: true
var onboardings: [Onboarding] = [
Onboarding(id: 1, imageOrientation: .landscape),
Onboarding(id: 2, imageOrientation: .landscape),
Onboarding(id: 3, imageOrientation: .portrait),
Onboarding(id: 4, imageOrientation: .portrait)
]

func reload() {
onboardings = onboardingsDictionary.map { key, value in
Onboarding(id: key, isPortraitImage: value)
}
}
func reload() {}
}
5 changes: 2 additions & 3 deletions NativeAppTemplate/Login/OnboardingRepositoryProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
//

import Foundation
import OrderedCollections

@MainActor protocol OnboardingRepositoryProtocol: AnyObject, Observable, Sendable {
@MainActor
protocol OnboardingRepositoryProtocol: AnyObject, Observable, Sendable {
var onboardings: [Onboarding] { get set }
var onboardingsDictionary: OrderedDictionary<Int, Bool> { get }

func reload()
}
7 changes: 6 additions & 1 deletion NativeAppTemplate/Models/Onboarding.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
// NativeAppTemplate
//

enum ImageOrientation: String, Hashable, Codable {
case portrait
case landscape
}

struct Onboarding: Hashable, Codable, Identifiable {
var id: Int
var isPortraitImage: Bool = false
var imageOrientation: ImageOrientation = .landscape
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"images" : [
{
"filename" : "overview1~universal@1x.png",
"filename" : "onboarding1.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "overview1~universal@2x.png",
"filename" : "onboarding1@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "overview1~universal@3x.png",
"filename" : "onboarding1@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"images" : [
{
"filename" : "overview2~universal@1x.png",
"filename" : "onboarding2.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "overview2~universal@2x.png",
"filename" : "onboarding2@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "overview2~universal@3x.png",
"filename" : "onboarding2@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"images" : [
{
"filename" : "overview6~universal@1x.png",
"filename" : "onboarding3.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "overview6~universal@2x.png",
"filename" : "onboarding3@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "overview6~universal@3x.png",
"filename" : "onboarding3@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Diff not rendered.
Diff not rendered.
Diff not rendered.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"images" : [
{
"filename" : "overview6_phone_customer2~universal@1x.png",
"filename" : "onboarding4.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "overview6_phone_customer2~universal@2x.png",
"filename" : "onboarding4@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "overview6_phone_customer2~universal@3x.png",
"filename" : "onboarding4@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.

This file was deleted.

Diff not rendered.
Diff not rendered.
Diff not rendered.

This file was deleted.

Diff not rendered.
Diff not rendered.
Diff not rendered.

This file was deleted.

Diff not rendered.
Diff not rendered.
Diff not rendered.

This file was deleted.

Diff not rendered.
Diff not rendered.
Diff not rendered.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"images" : [
{
"filename" : "overview7~universal@1x.png",
"filename" : "hero.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "overview7~universal@2x.png",
"filename" : "hero@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "overview7~universal@3x.png",
"filename" : "hero@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Loading
Loading