Skip to content

Commit 5d25617

Browse files
graycreateclaude
andcommitted
feat: add splash screen with centered logo
Add LaunchScreen.storyboard with: - Centered V2er logo (100x100) - SplashBackground color (white/dark gray for light/dark mode) - SplashLogoColor for logo tint (matches Android implementation) Colors match Android app: - Light mode: white background (#FFFFFF), dark logo (#111214) - Dark mode: dark background (#111214), white logo (#FFFFFF) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent b83e847 commit 5d25617

File tree

6 files changed

+156
-0
lines changed

6 files changed

+156
-0
lines changed

V2er.xcodeproj/project.pbxproj

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

99
/* Begin PBXBuildFile section */
10+
0B1A2B3C4D5E6F7081920A01 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0B1A2B3C4D5E6F7081920A02 /* LaunchScreen.storyboard */; };
1011
1AEBC3AC5DAA63523F5448F5 /* RichContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E205F350A3537A3E41B1AFC3 /* RichContentView.swift */; };
1112
28B24CA92EA3460D00F82B2A /* BalanceView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28B24CA82EA3460D00F82B2A /* BalanceView.swift */; };
1213
28B24CAB2EA3561400F82B2A /* OnlineStatsInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28B24CAA2EA3561400F82B2A /* OnlineStatsInfo.swift */; };
@@ -184,6 +185,7 @@
184185
/* End PBXContainerItemProxy section */
185186

186187
/* Begin PBXFileReference section */
188+
0B1A2B3C4D5E6F7081920A02 /* LaunchScreen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = LaunchScreen.storyboard; sourceTree = "<group>"; };
187189
28B24CA82EA3460D00F82B2A /* BalanceView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BalanceView.swift; sourceTree = "<group>"; };
188190
28B24CAA2EA3561400F82B2A /* OnlineStatsInfo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnlineStatsInfo.swift; sourceTree = "<group>"; };
189191
31C4B81E79369CDE4880B773 /* RichContentView+Preview.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "RichContentView+Preview.swift"; path = "V2er/Sources/RichView/Views/RichContentView+Preview.swift"; sourceTree = "<group>"; };
@@ -530,6 +532,7 @@
530532
5D436FEE24791C2D00FFA37E /* Assets.xcassets */,
531533
5DEC5D662730F25800B34BC5 /* www */,
532534
5D436FF624791C2D00FFA37E /* Info.plist */,
535+
0B1A2B3C4D5E6F7081920A02 /* LaunchScreen.storyboard */,
533536
5D436FF024791C2D00FFA37E /* Preview Content */,
534537
);
535538
path = V2er;
@@ -937,6 +940,7 @@
937940
isa = PBXResourcesBuildPhase;
938941
buildActionMask = 2147483647;
939942
files = (
943+
0B1A2B3C4D5E6F7081920A01 /* LaunchScreen.storyboard in Resources */,
940944
5D436FF224791C2D00FFA37E /* Preview Assets.xcassets in Resources */,
941945
5DEC5D7E2730F29000B34BC5 /* image_holder_loading.gif in Resources */,
942946
5DEC5D732730F28F00B34BC5 /* bootstrap.min.css in Resources */,
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" : "1.000",
9+
"green" : "1.000",
10+
"red" : "1.000"
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" : "0.078",
27+
"green" : "0.071",
28+
"red" : "0.067"
29+
}
30+
},
31+
"idiom" : "universal"
32+
}
33+
],
34+
"info" : {
35+
"author" : "xcode",
36+
"version" : 1
37+
}
38+
}
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" : "0.078",
9+
"green" : "0.071",
10+
"red" : "0.067"
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" : "1.000",
27+
"green" : "1.000",
28+
"red" : "1.000"
29+
}
30+
},
31+
"idiom" : "universal"
32+
}
33+
],
34+
"info" : {
35+
"author" : "xcode",
36+
"version" : 1
37+
}
38+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "splash_logo.png",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
},
21+
"properties" : {
22+
"preserves-vector-representation" : true,
23+
"template-rendering-intent" : "template"
24+
}
25+
}
32.5 KB
Loading

V2er/LaunchScreen.storyboard

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="22505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3+
<device id="retina6_12" orientation="portrait" appearance="light"/>
4+
<dependencies>
5+
<deployment identifier="iOS"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22504"/>
7+
<capability name="Named colors" minToolsVersion="9.0"/>
8+
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
9+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
10+
</dependencies>
11+
<scenes>
12+
<!--View Controller-->
13+
<scene sceneID="EHf-IW-A2E">
14+
<objects>
15+
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
16+
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
17+
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
18+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
19+
<subviews>
20+
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="SplashLogo" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-hZj">
21+
<rect key="frame" x="146.66666666666666" y="376" width="100" height="100"/>
22+
<color key="tintColor" name="SplashLogoColor"/>
23+
<constraints>
24+
<constraint firstAttribute="width" constant="100" id="4Gu-Yy-jb9"/>
25+
<constraint firstAttribute="height" constant="100" id="Bvb-Bh-X2V"/>
26+
</constraints>
27+
</imageView>
28+
</subviews>
29+
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
30+
<color key="backgroundColor" name="SplashBackground"/>
31+
<constraints>
32+
<constraint firstItem="YRO-k0-hZj" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="8N3-Om-IJQ"/>
33+
<constraint firstItem="YRO-k0-hZj" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="Ebl-PI-8DR"/>
34+
</constraints>
35+
</view>
36+
</viewController>
37+
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
38+
</objects>
39+
<point key="canvasLocation" x="53" y="375"/>
40+
</scene>
41+
</scenes>
42+
<resources>
43+
<image name="SplashLogo" width="1024" height="1024"/>
44+
<namedColor name="SplashBackground">
45+
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
46+
</namedColor>
47+
<namedColor name="SplashLogoColor">
48+
<color red="0.066999999999999993" green="0.070999999999999994" blue="0.078" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
49+
</namedColor>
50+
</resources>
51+
</document>

0 commit comments

Comments
 (0)