Skip to content

Commit

Permalink
#46: Added a Service struct to the SwiftUI target.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrtibbetts committed Feb 17, 2021
1 parent 66ceace commit 2aff14c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
4 changes: 4 additions & 0 deletions SwiftDiscogs.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@
96D5B7182497388500B555AC /* Stylobate.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 96D5B6D12495E23300B555AC /* Stylobate.framework */; };
96D5B7192497388500B555AC /* Stylobate.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 96D5B6D12495E23300B555AC /* Stylobate.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
96D5B71C24973DB200B555AC /* DiscogsClient.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96D5B71B24973DB200B555AC /* DiscogsClient.swift */; };
96D5B71E2498A25900B555AC /* Service.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96D5B71D2498A25900B555AC /* Service.swift */; };
96E044A22089A93E008F1FE4 /* CollectionAndTableViewControllerTestBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96E044A12089A93E008F1FE4 /* CollectionAndTableViewControllerTestBase.swift */; };
96E8CCE020E33396001C5381 /* DiscogsDisplay.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96E8CCDF20E33396001C5381 /* DiscogsDisplay.swift */; };
96EA0DE0225EDF220072F09F /* ArtistBioViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96EA0DDF225EDF220072F09F /* ArtistBioViewController.swift */; };
Expand Down Expand Up @@ -523,6 +524,7 @@
96D5B70A2497361700B555AC /* SwiftUIDiscogsUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftUIDiscogsUITests.swift; sourceTree = "<group>"; };
96D5B70C2497361700B555AC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
96D5B71B24973DB200B555AC /* DiscogsClient.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DiscogsClient.swift; sourceTree = "<group>"; };
96D5B71D2498A25900B555AC /* Service.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Service.swift; sourceTree = "<group>"; };
96E044A12089A93E008F1FE4 /* CollectionAndTableViewControllerTestBase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CollectionAndTableViewControllerTestBase.swift; sourceTree = "<group>"; };
96E8CCDF20E33396001C5381 /* DiscogsDisplay.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DiscogsDisplay.swift; sourceTree = "<group>"; };
96EA0DDF225EDF220072F09F /* ArtistBioViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ArtistBioViewController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1123,6 +1125,7 @@
96D5B6F32497361700B555AC /* LaunchScreen.storyboard */,
96D5B6F02497361700B555AC /* Preview Content */,
96D5B6E92497361200B555AC /* SwiftUIDiscogs.xcdatamodeld */,
96D5B71D2498A25900B555AC /* Service.swift */,
);
path = SwiftUIDiscogs;
sourceTree = "<group>";
Expand Down Expand Up @@ -1749,6 +1752,7 @@
96D5B6EB2497361200B555AC /* SwiftUIDiscogs.xcdatamodeld in Sources */,
96D5B6ED2497361200B555AC /* MainView.swift in Sources */,
96D5B6E82497361200B555AC /* SceneDelegate.swift in Sources */,
96D5B71E2498A25900B555AC /* Service.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
2 changes: 1 addition & 1 deletion SwiftUIDiscogs/MainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ struct MainView: View {
@State private var searchTerms: String = ""

var body: some View {
VStack {
VStack(alignment: .center, spacing: 20.0) {
TextField("Search Discogs", text: $searchTerms)
Text("Searching for \(searchTerms)")
}
Expand Down
17 changes: 17 additions & 0 deletions SwiftUIDiscogs/Service.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// Service.swift
// SwiftUIDiscogs
//
// Created by Jason R Tibbetts on 6/16/20.
// Copyright © 2020 Poikile Creations. All rights reserved.
//

import Foundation

public struct Service {

public var username: String

public var baseUrl: URL

}

0 comments on commit 2aff14c

Please sign in to comment.