Skip to content

Commit ff20ba9

Browse files
committed
wip: minimal auth ui sample
1 parent e4dae09 commit ff20ba9

File tree

66 files changed

+1781
-26
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1781
-26
lines changed

samples/auth-swiftui/AuthSwiftUIExample.xcodeproj/project.pbxproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
7E9F99352EA3AF3A008DDF74 /* FirebaseAuthSwiftUI in Frameworks */ = {isa = PBXBuildFile; productRef = 7EC27B3F2E6DBF52004F8DEA /* FirebaseAuthSwiftUI */; };
1011
7EC27B862E6DD248004F8DEA /* FirebaseAuthSwiftUI in Frameworks */ = {isa = PBXBuildFile; productRef = 7EC27B852E6DD248004F8DEA /* FirebaseAuthSwiftUI */; };
1112
/* End PBXBuildFile section */
1213

@@ -56,6 +57,7 @@
5657
isa = PBXFrameworksBuildPhase;
5758
buildActionMask = 2147483647;
5859
files = (
60+
7E9F99352EA3AF3A008DDF74 /* FirebaseAuthSwiftUI in Frameworks */,
5961
7EC27B862E6DD248004F8DEA /* FirebaseAuthSwiftUI in Frameworks */,
6062
);
6163
runOnlyForDeploymentPostprocessing = 0;
@@ -415,13 +417,16 @@
415417
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
416418
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
417419
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
420+
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
418421
LD_RUNPATH_SEARCH_PATHS = (
419422
"$(inherited)",
420423
"@executable_path/Frameworks",
421424
);
422425
MARKETING_VERSION = 1.0;
423426
PRODUCT_BUNDLE_IDENTIFIER = com.example.AuthSwiftUIExample;
424427
PRODUCT_NAME = "$(TARGET_NAME)";
428+
SWIFT_APPROACHABLE_CONCURRENCY = YES;
429+
SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;
425430
SWIFT_EMIT_LOC_STRINGS = YES;
426431
SWIFT_VERSION = 5.0;
427432
TARGETED_DEVICE_FAMILY = "1,2";
@@ -443,13 +448,16 @@
443448
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
444449
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
445450
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
451+
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
446452
LD_RUNPATH_SEARCH_PATHS = (
447453
"$(inherited)",
448454
"@executable_path/Frameworks",
449455
);
450456
MARKETING_VERSION = 1.0;
451457
PRODUCT_BUNDLE_IDENTIFIER = com.example.AuthSwiftUIExample;
452458
PRODUCT_NAME = "$(TARGET_NAME)";
459+
SWIFT_APPROACHABLE_CONCURRENCY = YES;
460+
SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;
453461
SWIFT_EMIT_LOC_STRINGS = YES;
454462
SWIFT_VERSION = 5.0;
455463
TARGETED_DEVICE_FAMILY = "1,2";

samples/auth-swiftui/AuthSwiftUIExample/AuthSwiftUIExampleApp.swift renamed to samples/auth-swiftui/AuthSwiftUIExample/App/AuthSwiftUIExampleApp.swift

File renamed without changes.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
//
2+
// ContentView.swift
3+
// AuthSwiftUIExample
4+
//
5+
// Created by Ademola Fadumo on 07/09/2025.
6+
//
7+
8+
import SwiftUI
9+
import FirebaseAuthSwiftUI
10+
11+
struct ContentView: View {
12+
@State private var isPresented: Bool = true
13+
14+
var body: some View {
15+
FirebaseAuthView(
16+
isPresented: $isPresented
17+
) {
18+
NavigationStack {
19+
VStack {
20+
Text("Body")
21+
}
22+
.navigationTitle("Firebase UI Demo")
23+
}
24+
}
25+
}
26+
}
27+
28+
#Preview {
29+
ContentView()
30+
}

samples/auth-swiftui/AuthSwiftUIExample/ContentView.swift

Lines changed: 0 additions & 26 deletions
This file was deleted.

samples/auth-swiftui/AuthSwiftUIExample/Assets.xcassets/AccentColor.colorset/Contents.json renamed to samples/auth-swiftui/AuthSwiftUIExample/Resources/Assets.xcassets/AccentColor.colorset/Contents.json

File renamed without changes.

samples/auth-swiftui/AuthSwiftUIExample/Assets.xcassets/AppIcon.appiconset/Contents.json renamed to samples/auth-swiftui/AuthSwiftUIExample/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json

File renamed without changes.

samples/auth-swiftui/AuthSwiftUIExample/Assets.xcassets/Contents.json renamed to samples/auth-swiftui/AuthSwiftUIExample/Resources/Assets.xcassets/Contents.json

File renamed without changes.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "firebase_auth_120dp 2.png",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"filename" : "firebase_auth_120dp 1.png",
10+
"idiom" : "universal",
11+
"scale" : "2x"
12+
},
13+
{
14+
"filename" : "firebase_auth_120dp.png",
15+
"idiom" : "universal",
16+
"scale" : "3x"
17+
}
18+
],
19+
"info" : {
20+
"author" : "xcode",
21+
"version" : 1
22+
}
23+
}
31.2 KB
15.5 KB

0 commit comments

Comments
 (0)