-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from team-telnyx/feat/WEBRTC-2425-splash
[iOS] Splash Screen and App Icon Adjustments - WEBRTC-2425
- Loading branch information
Showing
42 changed files
with
267 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.63 KB
TelnyxWebRTCDemo/Assets.xcassets/AppIcon.appiconset/AppIcon-20@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.63 KB
TelnyxWebRTCDemo/Assets.xcassets/AppIcon.appiconset/AppIcon-20@2x~ipad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.18 KB
TelnyxWebRTCDemo/Assets.xcassets/AppIcon.appiconset/AppIcon-20@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+778 Bytes
TelnyxWebRTCDemo/Assets.xcassets/AppIcon.appiconset/AppIcon-20~ipad.png
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 added
BIN
+2.19 KB
TelnyxWebRTCDemo/Assets.xcassets/AppIcon.appiconset/AppIcon-29@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.19 KB
TelnyxWebRTCDemo/Assets.xcassets/AppIcon.appiconset/AppIcon-29@2x~ipad.png
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 added
BIN
+1.1 KB
TelnyxWebRTCDemo/Assets.xcassets/AppIcon.appiconset/AppIcon-29~ipad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.02 KB
TelnyxWebRTCDemo/Assets.xcassets/AppIcon.appiconset/AppIcon-40@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.02 KB
TelnyxWebRTCDemo/Assets.xcassets/AppIcon.appiconset/AppIcon-40@2x~ipad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.21 KB
TelnyxWebRTCDemo/Assets.xcassets/AppIcon.appiconset/AppIcon-40@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.63 KB
TelnyxWebRTCDemo/Assets.xcassets/AppIcon.appiconset/AppIcon-40~ipad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.21 KB
TelnyxWebRTCDemo/Assets.xcassets/AppIcon.appiconset/AppIcon-60@2x~car.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.26 KB
TelnyxWebRTCDemo/Assets.xcassets/AppIcon.appiconset/AppIcon-60@3x~car.png
Oops, something went wrong.
Binary file added
BIN
+5.89 KB
TelnyxWebRTCDemo/Assets.xcassets/AppIcon.appiconset/AppIcon-83.5@2x~ipad.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+5.17 KB
TelnyxWebRTCDemo/Assets.xcassets/AppIcon.appiconset/AppIcon@2x~ipad.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+53.6 KB
TelnyxWebRTCDemo/Assets.xcassets/AppIcon.appiconset/AppIcon~ios-marketing.png
Oops, something went wrong.
Oops, something went wrong.
135 changes: 134 additions & 1 deletion
135
TelnyxWebRTCDemo/Assets.xcassets/AppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,134 @@ | ||
{"images":[{"size":"60x60","expected-size":"180","filename":"180.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"40x40","expected-size":"80","filename":"80.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"40x40","expected-size":"120","filename":"120.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"60x60","expected-size":"120","filename":"120.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"57x57","expected-size":"57","filename":"57.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"1x"},{"size":"29x29","expected-size":"58","filename":"58.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"29x29","expected-size":"29","filename":"29.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"1x"},{"size":"29x29","expected-size":"87","filename":"87.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"57x57","expected-size":"114","filename":"114.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"20x20","expected-size":"40","filename":"40.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"20x20","expected-size":"60","filename":"60.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"1024x1024","filename":"1024.png","expected-size":"1024","idiom":"ios-marketing","folder":"Assets.xcassets/AppIcon.appiconset/","scale":"1x"}]} | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "AppIcon-20@2x.png", | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "20x20" | ||
}, | ||
{ | ||
"filename" : "AppIcon-20@3x.png", | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "20x20" | ||
}, | ||
{ | ||
"filename" : "AppIcon-29.png", | ||
"idiom" : "iphone", | ||
"scale" : "1x", | ||
"size" : "29x29" | ||
}, | ||
{ | ||
"filename" : "AppIcon-29@2x.png", | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "29x29" | ||
}, | ||
{ | ||
"filename" : "AppIcon-29@3x.png", | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "29x29" | ||
}, | ||
{ | ||
"filename" : "AppIcon-40@2x.png", | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "40x40" | ||
}, | ||
{ | ||
"filename" : "AppIcon-40@3x.png", | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "40x40" | ||
}, | ||
{ | ||
"filename" : "AppIcon@2x.png", | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "60x60" | ||
}, | ||
{ | ||
"filename" : "AppIcon@3x.png", | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "60x60" | ||
}, | ||
{ | ||
"filename" : "AppIcon-20~ipad.png", | ||
"idiom" : "ipad", | ||
"scale" : "1x", | ||
"size" : "20x20" | ||
}, | ||
{ | ||
"filename" : "AppIcon-20@2x~ipad.png", | ||
"idiom" : "ipad", | ||
"scale" : "2x", | ||
"size" : "20x20" | ||
}, | ||
{ | ||
"filename" : "AppIcon-29~ipad.png", | ||
"idiom" : "ipad", | ||
"scale" : "1x", | ||
"size" : "29x29" | ||
}, | ||
{ | ||
"filename" : "AppIcon-29@2x~ipad.png", | ||
"idiom" : "ipad", | ||
"scale" : "2x", | ||
"size" : "29x29" | ||
}, | ||
{ | ||
"filename" : "AppIcon-40~ipad.png", | ||
"idiom" : "ipad", | ||
"scale" : "1x", | ||
"size" : "40x40" | ||
}, | ||
{ | ||
"filename" : "AppIcon-40@2x~ipad.png", | ||
"idiom" : "ipad", | ||
"scale" : "2x", | ||
"size" : "40x40" | ||
}, | ||
{ | ||
"filename" : "AppIcon~ipad.png", | ||
"idiom" : "ipad", | ||
"scale" : "1x", | ||
"size" : "76x76" | ||
}, | ||
{ | ||
"filename" : "AppIcon@2x~ipad.png", | ||
"idiom" : "ipad", | ||
"scale" : "2x", | ||
"size" : "76x76" | ||
}, | ||
{ | ||
"filename" : "AppIcon-83.5@2x~ipad.png", | ||
"idiom" : "ipad", | ||
"scale" : "2x", | ||
"size" : "83.5x83.5" | ||
}, | ||
{ | ||
"filename" : "AppIcon-60@2x~car.png", | ||
"idiom" : "car", | ||
"scale" : "2x", | ||
"size" : "60x60" | ||
}, | ||
{ | ||
"filename" : "AppIcon-60@3x~car.png", | ||
"idiom" : "car", | ||
"scale" : "3x", | ||
"size" : "60x60" | ||
}, | ||
{ | ||
"filename" : "AppIcon~ios-marketing.png", | ||
"idiom" : "ios-marketing", | ||
"scale" : "1x", | ||
"size" : "1024x1024" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
TelnyxWebRTCDemo/Assets.xcassets/telnyx-icon.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "telnyx-icon.pdf", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+5.05 KB
TelnyxWebRTCDemo/Assets.xcassets/telnyx-icon.imageset/telnyx-icon.pdf
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
TelnyxWebRTCDemo/Assets.xcassets/telnyx-logo.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "telnyx-logo.pdf", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+14.5 KB
TelnyxWebRTCDemo/Assets.xcassets/telnyx-logo.imageset/telnyx-logo.pdf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import SwiftUI | ||
|
||
struct SplashScreen: View { | ||
@State private var isActive = false | ||
|
||
var body: some View { | ||
if isActive { | ||
// Replace this with your main storyboard view | ||
MainStoryboardView() | ||
} else { | ||
VStack { | ||
Image("telnyx-logo") | ||
.resizable() | ||
.scaledToFit() | ||
.frame(width: 200) | ||
} | ||
.frame(maxWidth: .infinity, maxHeight: .infinity) | ||
.background(Color.white) | ||
.onAppear { | ||
DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) { | ||
withAnimation { | ||
self.isActive = true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
struct MainStoryboardView: UIViewControllerRepresentable { | ||
func makeUIViewController(context: Context) -> UIViewController { | ||
let storyboard = UIStoryboard(name: "Main", bundle: nil) | ||
let initialViewController = storyboard.instantiateInitialViewController()! | ||
return initialViewController | ||
} | ||
|
||
func updateUIViewController(_ uiViewController: UIViewController, context: Context) {} | ||
} | ||
|
||
struct SplashScreen_Previews: PreviewProvider { | ||
static var previews: some View { | ||
SplashScreen() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import SwiftUI | ||
|
||
struct SplashScreen: View { | ||
@State private var isActive = false | ||
|
||
var body: some View { | ||
if isActive { | ||
MainStoryboardView() | ||
} else { | ||
VStack { | ||
Image("telnyx-logo") | ||
.resizable() | ||
.scaledToFit() | ||
.frame(width: 200) | ||
} | ||
.frame(maxWidth: .infinity, maxHeight: .infinity) | ||
.background(Color.white) | ||
.onAppear { | ||
DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) { | ||
withAnimation { | ||
self.isActive = true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
struct MainStoryboardView: UIViewControllerRepresentable { | ||
func makeUIViewController(context: Context) -> UIViewController { | ||
let storyboard = UIStoryboard(name: "Main", bundle: nil) | ||
let initialViewController = storyboard.instantiateInitialViewController()! | ||
return initialViewController | ||
} | ||
|
||
func updateUIViewController(_ uiViewController: UIViewController, context: Context) {} | ||
} | ||
|
||
struct SplashScreen_Previews: PreviewProvider { | ||
static var previews: some View { | ||
SplashScreen() | ||
} | ||
} |