Skip to content

Commit cd95423

Browse files
committed
Move body variable inside ArtistView. Bump version number.
1 parent 3225363 commit cd95423

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

TidalSwift.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@
10241024
CODE_SIGN_IDENTITY = "Apple Development";
10251025
CODE_SIGN_STYLE = Automatic;
10261026
COMBINE_HIDPI_IMAGES = YES;
1027-
CURRENT_PROJECT_VERSION = 26;
1027+
CURRENT_PROJECT_VERSION = 27;
10281028
DEVELOPMENT_ASSET_PATHS = "TidalSwift/Preview\\ Content";
10291029
DEVELOPMENT_TEAM = V7E5P7292M;
10301030
ENABLE_HARDENED_RUNTIME = YES;
@@ -1054,7 +1054,7 @@
10541054
CODE_SIGN_IDENTITY = "Apple Development";
10551055
CODE_SIGN_STYLE = Automatic;
10561056
COMBINE_HIDPI_IMAGES = YES;
1057-
CURRENT_PROJECT_VERSION = 26;
1057+
CURRENT_PROJECT_VERSION = 27;
10581058
DEVELOPMENT_ASSET_PATHS = "TidalSwift/Preview\\ Content";
10591059
DEVELOPMENT_TEAM = V7E5P7292M;
10601060
ENABLE_HARDENED_RUNTIME = YES;

TidalSwift/ArtistView.swift

+18-18
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,24 @@ struct ArtistView: View {
5858
}
5959
}
6060

61+
var body: some View {
62+
ZStack {
63+
// TODO: Bring ScroolView back in?
64+
if let artist = artist {
65+
VStack(alignment: .leading) {
66+
headerSection(artist, viewState: viewState)
67+
topTrackSection()
68+
Divider()
69+
bottomSection(artist)
70+
}
71+
.padding(.top, 50) // Has to be 50 instead of 40 like the others to look the same
72+
} else {
73+
Text("Couldn't load Artist")
74+
}
75+
BackButton()
76+
}
77+
}
78+
6179
func headerSection(_ artist: Artist, viewState: ViewState) -> some View {
6280
HStack {
6381
if let pictureUrlSmall = artist.getPictureUrl(session: session, resolution: 320),
@@ -169,22 +187,4 @@ struct ArtistView: View {
169187
}
170188
.padding(.horizontal)
171189
}
172-
173-
var body: some View {
174-
ZStack {
175-
// TODO: Bring ScroolView back in?
176-
if let artist = artist {
177-
VStack(alignment: .leading) {
178-
headerSection(artist, viewState: viewState)
179-
topTrackSection()
180-
Divider()
181-
bottomSection(artist)
182-
}
183-
.padding(.top, 50) // Has to be 50 instead of 40 like the others to look the same
184-
} else {
185-
Text("Couldn't load Artist")
186-
}
187-
BackButton()
188-
}
189-
}
190190
}

0 commit comments

Comments
 (0)