You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.with(text:"Mars is the fourth planet from the Sun and the second-smallest planet in the Solar System, being larger than only Mercury. In English, Mars carries the name of the Roman god of war and is often referred to as the \"Red Planet\". The latter refers to the effect of the iron oxide prevalent on Mars's surface.".uppercased()),
27
+
UILabel()
28
+
.withTitleStyle
29
+
.with(text:"History"),
30
+
UILabel()
31
+
.withParagraphStyle
32
+
.with(text:"The days and seasons are comparable to those of Earth, because the rotation period as well as the tilt of the rotational axis relative to the ecliptic plane are similar. Mars is the site of Olympus Mons, the largest volcano and highest known mountain on any planet in the Solar System, and of Valles Marineris, one of the largest canyons in the Solar System. The smooth Borealis basin in the Northern Hemisphere covers 40% of the planet and may be a giant impact feature. Mars has two moons, Phobos and Deimos, which are small and irregularly shaped.\n\nMars has been explored by several uncrewed spacecraft. Mariner 4 was the first spacecraft to visit Mars; launched by NASA on 28 November 1964, it made its closest approach to the planet on 15 July 1965. Mariner 4 detected the weak Martian radiation belt, measured at about 0.1% that of Earth, and captured the first images of another planet from deep space. The latest spacecraft to successfully land on Mars are CNSA's Tianwen-1 lander and Zhurong rover, landed on 14 May 2021.")
@@ -42,7 +42,7 @@ class PlanetViewController: UIViewController {
42
42
super.viewDidLoad()
43
43
44
44
// Colors.
45
-
view.backgroundColor =.background
45
+
view.backgroundColor =UI.Color.background
46
46
overrideUserInterfaceStyle =.dark
47
47
48
48
// Hierarchy.
@@ -69,9 +69,9 @@ class PlanetViewController: UIViewController {
69
69
70
70
// Data.
71
71
heroLabel.text ="Mars"
72
-
heroLabel.textColor =.mars
72
+
heroLabel.textColor =UI.Color.mars
73
73
subtitleLabel.text ="Martian (/ˈmɑːrʃən/)"
74
-
image.image =.init(named:"Mars")
74
+
image.image =UI.Asset.mars
75
75
introLabel.text ="Mars is the fourth planet from the Sun and the second-smallest planet in the Solar System, being larger than only Mercury. In English, Mars carries the name of the Roman god of war and is often referred to as the \"Red Planet\". The latter refers to the effect of the iron oxide prevalent on Mars's surface.".uppercased()
76
76
titleLabel.text ="History"
77
77
paragraphLabel.text ="""
@@ -85,8 +85,10 @@ class PlanetViewController: UIViewController {
0 commit comments