Skip to content

Commit 69c5c6a

Browse files
committed
Cleanup
1 parent 7453f77 commit 69c5c6a

3 files changed

Lines changed: 45 additions & 18 deletions

File tree

RubyEvents/App.swift

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,6 @@ class App {
8282
}
8383
}
8484

85-
extension UIHostingController {
86-
func hideNavigationBar(animated: Bool = true) {
87-
navigationController?.setNavigationBarHidden(true, animated: animated)
88-
}
89-
90-
func showNavigationBar(animated: Bool = true) {
91-
navigationController?.setNavigationBarHidden(false, animated: animated)
92-
}
93-
}
94-
9585
extension App: NavigatorDelegate {
9686
func handle(proposal: VisitProposal) -> ProposalResult {
9787

@@ -102,8 +92,7 @@ extension App: NavigatorDelegate {
10292
navigator: App.instance.navigatorFor(title: "Home")
10393
)
10494
)
105-
viewController.hideNavigationBar()
106-
95+
10796
return .acceptCustom(viewController)
10897
default:
10998
return .accept
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.236",
9+
"green" : "0.081",
10+
"red" : "0.865"
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.236",
27+
"green" : "0.081",
28+
"red" : "0.865"
29+
}
30+
},
31+
"idiom" : "universal"
32+
}
33+
],
34+
"info" : {
35+
"author" : "xcode",
36+
"version" : 1
37+
}
38+
}

RubyEvents/Base.lproj/LaunchScreen.storyboard

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="23504" 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"/>
3+
<device id="retina6_9" orientation="portrait" appearance="light"/>
44
<dependencies>
55
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
66
<capability name="Named colors" minToolsVersion="9.0"/>
@@ -13,12 +13,12 @@
1313
<objects>
1414
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
1515
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
16-
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
16+
<rect key="frame" x="0.0" y="0.0" width="440" height="956"/>
1717
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
1818
<subviews>
1919
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="LaunchScreen" translatesAutoresizingMaskIntoConstraints="NO" id="1rg-jW-pBB">
20-
<rect key="frame" x="0.0" y="84" width="393" height="685"/>
21-
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
20+
<rect key="frame" x="-93" y="-30" width="627" height="1016"/>
21+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
2222
</imageView>
2323
</subviews>
2424
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
@@ -28,13 +28,13 @@
2828
</viewController>
2929
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
3030
</objects>
31-
<point key="canvasLocation" x="52.671755725190835" y="374.64788732394368"/>
31+
<point key="canvasLocation" x="51.81818181818182" y="374.05857740585776"/>
3232
</scene>
3333
</scenes>
3434
<resources>
3535
<image name="LaunchScreen" width="393" height="852"/>
3636
<namedColor name="AccentColor">
37-
<color red="0.86500000953674316" green="0.081000000238418579" blue="0.23600000143051147" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
37+
<color red="0.0080000003799796104" green="0.023000000044703484" blue="0.037000000476837158" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
3838
</namedColor>
3939
</resources>
4040
</document>

0 commit comments

Comments
 (0)