Skip to content

Commit 54d9b33

Browse files
committed
add sign in with LINE example
1 parent 207f13d commit 54d9b33

6 files changed

Lines changed: 70 additions & 0 deletions

File tree

samples/swiftui/FirebaseSwiftUIExample/FirebaseSwiftUIExample/App/ContentView.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ struct ContentView: View {
5656
.withOAuthSignIn(OAuthProviderSwift.github())
5757
.withOAuthSignIn(OAuthProviderSwift.microsoft())
5858
.withOAuthSignIn(OAuthProviderSwift.yahoo())
59+
.withOAuthSignIn(
60+
OAuthProviderSwift(
61+
providerId: "oidc.line",
62+
displayName: "Sign in with LINE",
63+
buttonIcon: Image(.icLineLogo),
64+
buttonBackgroundColor: .lineButton,
65+
buttonForegroundColor: .white
66+
)
67+
)
5968
.withEmailSignIn()
6069
}
6170

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "fui-ic-line-logo.png",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"filename" : "fui-ic-line-logo-x2.png",
10+
"idiom" : "universal",
11+
"scale" : "2x"
12+
},
13+
{
14+
"filename" : "fui-ic-line-logo-x3.png",
15+
"idiom" : "universal",
16+
"scale" : "3x"
17+
}
18+
],
19+
"info" : {
20+
"author" : "xcode",
21+
"version" : 1
22+
}
23+
}
3.02 KB
Loading
4.71 KB
Loading
1.4 KB
Loading
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"colors" : [
3+
{
4+
"color" : {
5+
"color-space" : "srgb",
6+
"components" : {
7+
"alpha" : "1.000",
8+
"blue" : "0x55",
9+
"green" : "0xC7",
10+
"red" : "0x06"
11+
}
12+
},
13+
"idiom" : "universal"
14+
},
15+
{
16+
"appearances" : [
17+
{
18+
"appearance" : "luminosity",
19+
"value" : "dark"
20+
}
21+
],
22+
"color" : {
23+
"color-space" : "srgb",
24+
"components" : {
25+
"alpha" : "1.000",
26+
"blue" : "0x55",
27+
"green" : "0xC7",
28+
"red" : "0x06"
29+
}
30+
},
31+
"idiom" : "universal"
32+
}
33+
],
34+
"info" : {
35+
"author" : "xcode",
36+
"version" : 1
37+
}
38+
}

0 commit comments

Comments
 (0)