Skip to content

Commit

Permalink
files
Browse files Browse the repository at this point in the history
  • Loading branch information
Noa Lahan committed Nov 8, 2024
1 parent bdc60df commit c1acda4
Show file tree
Hide file tree
Showing 49 changed files with 1,843 additions and 0 deletions.
Binary file added NL - AppDev Documentation.pdf
Binary file not shown.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
# appdev
# Noa Lahan App Development Project

## Book Swap App

- Documentation PDF has detailed description of every file
- Walkthrough MP4 was too big:
> remote: error: Please contact [email protected]
remote: error: File project/BookSwap Walkthrough.mp4 is 263.59 MB; this exceeds GitHub Enterprise's file size limit of 250.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
To git.arts.ac.uk:23043904/appdev.git
! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'git.arts.ac.uk:23043904/appdev.git'
(base) noalahan@Noas-Air-2 appdev %
- Walkthrough youtube link: https://youtu.be/P9I6DaaW3xk?si=gHrQU_CCCPnURcZJ
405 changes: 405 additions & 0 deletions project.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
uuid = "CB38C2C8-9F8B-49F8-AB60-C8801AF9A9B1"
type = "1"
version = "2.0">
</Bucket>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>project.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
38 changes: 38 additions & 0 deletions project/Assets.xcassets/AccentColor.colorset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x21",
"green" : "0x16",
"red" : "0x93"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x2F",
"green" : "0x20",
"red" : "0xD5"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions project/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "AppIcon.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions project/Assets.xcassets/AtticusFinch.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "AtticusFinch.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
6 changes: 6 additions & 0 deletions project/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
12 changes: 12 additions & 0 deletions project/Assets.xcassets/JaneAusten.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "JaneAusten.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions project/Assets.xcassets/JohnDoe.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "JohnDoe.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions project/Assets.xcassets/JulietCapulet.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "JulietCapulet.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions project/Assets.xcassets/MarkTwain.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "MarkTwain.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions project/Assets.xcassets/SherlockHolmes.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "SherlockHolmes.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions project/Assets.xcassets/WandaMaximoff.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "WandaMaximoff.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions project/Assets.xcassets/WilliamShakespear.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "WilliamShakespear.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions project/Assets.xcassets/logo.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"images" : [
{
"filename" : "LogoLight.png",
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "LogoDark.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions project/Chat.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import SwiftUI

struct Chat: View {
var body: some View {
NavigationView {
List(convos) { convo in
NavigationLink(destination: ConvoDetail(convo: convo)) {
HStack{
Image(convo.image)
.resizable()
.frame(width: 50, height:50)
.clipShape(Circle())
VStack (alignment: .leading){
Text(convo.name).font(.headline)
HStack{
Text(convo.messages.last?.text ?? "")
.italic()
.frame(width: 200, height: 10, alignment: .leading)
.truncationMode(.tail)
Spacer()
}
}
}
}
}
.navigationTitle("Messages")
}
}
}

#Preview {
Chat()
}
29 changes: 29 additions & 0 deletions project/ContentView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import SwiftUI

struct ContentView: View {

@State var selectedTab = 0

var body: some View {
TabView(selection: $selectedTab){
Main().tabItem {
Label("Main", systemImage: "book")
}
Chat().tabItem{
Label("Chat", systemImage: "bubble")
}
Library().tabItem{
Label("Library", systemImage: "books.vertical")
}
Profile().tabItem {
Label("Profile", systemImage: "person.crop.circle")
}

}
}
}


#Preview {
ContentView()
}
57 changes: 57 additions & 0 deletions project/Convo.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import SwiftUI


struct Message: Identifiable {
var id = UUID()
var text: String
var user: Bool
}

class Convo: ObservableObject, Identifiable {
var id = UUID()
var name: String
var username: String
var image: String
@Published var messages: [Message]

init(name: String, username: String, image: String, messages: [Message] = []) {
self.name = name
self.username = username
self.image = image
self.messages = messages
}

func addToConvoList(){
convos.insert(self, at: 0)
}
}

var convos: [Convo] = [
Convo(name: "John Doe",
username: "@mr_doe",
image: "JohnDoe",
messages: [
Message(text: "Hey John how goes it? I like your book list", user: true),
Message(text: "I was hoping to get some recommendations?", user: true),
Message(text: "Hi ofc! I recently read The Great Gatsby... It's a classic!", user: false),
Message(text: "Also To Kill a Mockingbird is another must-read", user: false),
Message(text: "I'll have to check them out. Any other recs?", user: true),
Message(text: "None at the moment but I've enjoyed all the ones on my book list so feel free to use those as recommendations", user: false),
Message(text: "Great! Thanks mate", user: true),
Message(text: "Anytime let me know how you're finding them", user: false),
]

),
Convo(name: "Jane Austen",
username: "@prideprejudice",
image: "JaneAusten",
messages: [
Message(text: "Hi there!", user: true),
Message(text: "Hello!", user: false),
Message(text: "Just wanted to say big fun of your work", user: true),
Message(text: "Thats all have a lovely day", user: true),
Message(text: "Awe that's so sweet", user: false),
Message(text: ":)", user: true),
]
),
]
Loading

0 comments on commit c1acda4

Please sign in to comment.