Skip to content

Commit

Permalink
remove unused views and add new DragRectangleView exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
grafele committed Oct 30, 2019
1 parent 6a06026 commit 706d40f
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 94 deletions.
12 changes: 4 additions & 8 deletions SwiftUITalk.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
F6C915F023699C9500C7E4C8 /* DragRectangleView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6C915EF23699C9500C7E4C8 /* DragRectangleView.swift */; };
F6D5673F234E340500D0417B /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6D5673E234E340500D0417B /* AppDelegate.swift */; };
F6D56741234E340500D0417B /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6D56740234E340500D0417B /* SceneDelegate.swift */; };
F6D56743234E340500D0417B /* LoginView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6D56742234E340500D0417B /* LoginView.swift */; };
Expand All @@ -22,11 +23,10 @@
F6E31D7E234F43D500EA19C4 /* PostDetailView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6E31D7D234F43D500EA19C4 /* PostDetailView.swift */; };
F6E31D82234F4BB000EA19C4 /* Post+Decodable.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6E31D81234F4BB000EA19C4 /* Post+Decodable.swift */; };
F6E31D84234F4BCA00EA19C4 /* Author.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6E31D83234F4BCA00EA19C4 /* Author.swift */; };
F6E31D86234F527B00EA19C4 /* AuthorView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6E31D85234F527B00EA19C4 /* AuthorView.swift */; };
F6E31D88234F58B500EA19C4 /* AuthorsGridView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6E31D87234F58B500EA19C4 /* AuthorsGridView.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
F6C915EF23699C9500C7E4C8 /* DragRectangleView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DragRectangleView.swift; sourceTree = "<group>"; };
F6D5673B234E340500D0417B /* SwiftUITalk.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftUITalk.app; sourceTree = BUILT_PRODUCTS_DIR; };
F6D5673E234E340500D0417B /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
F6D56740234E340500D0417B /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
Expand All @@ -44,8 +44,6 @@
F6E31D7D234F43D500EA19C4 /* PostDetailView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostDetailView.swift; sourceTree = "<group>"; };
F6E31D81234F4BB000EA19C4 /* Post+Decodable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Post+Decodable.swift"; sourceTree = "<group>"; };
F6E31D83234F4BCA00EA19C4 /* Author.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Author.swift; sourceTree = "<group>"; };
F6E31D85234F527B00EA19C4 /* AuthorView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AuthorView.swift; sourceTree = "<group>"; };
F6E31D87234F58B500EA19C4 /* AuthorsGridView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AuthorsGridView.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -108,9 +106,8 @@
F6D56742234E340500D0417B /* LoginView.swift */,
F6D56754234F1B9F00D0417B /* BlogListView.swift */,
F6E31D7D234F43D500EA19C4 /* PostDetailView.swift */,
F6E31D85234F527B00EA19C4 /* AuthorView.swift */,
F6E31D7B234F41EA00EA19C4 /* WebView.swift */,
F6E31D87234F58B500EA19C4 /* AuthorsGridView.swift */,
F6C915EF23699C9500C7E4C8 /* DragRectangleView.swift */,
);
path = Views;
sourceTree = "<group>";
Expand Down Expand Up @@ -214,11 +211,10 @@
buildActionMask = 2147483647;
files = (
F6E31D7E234F43D500EA19C4 /* PostDetailView.swift in Sources */,
F6E31D88234F58B500EA19C4 /* AuthorsGridView.swift in Sources */,
F6C915F023699C9500C7E4C8 /* DragRectangleView.swift in Sources */,
F6D56755234F1B9F00D0417B /* BlogListView.swift in Sources */,
F6E31D7C234F41EA00EA19C4 /* WebView.swift in Sources */,
F6D5675B234F1C4200D0417B /* DataService.swift in Sources */,
F6E31D86234F527B00EA19C4 /* AuthorView.swift in Sources */,
F6D5673F234E340500D0417B /* AppDelegate.swift in Sources */,
F6E31D84234F4BCA00EA19C4 /* Author.swift in Sources */,
F6E31D82234F4BB000EA19C4 /* Post+Decodable.swift in Sources */,
Expand Down
37 changes: 0 additions & 37 deletions SwiftUITalk/Views/AuthorView.swift

This file was deleted.

49 changes: 0 additions & 49 deletions SwiftUITalk/Views/AuthorsGridView.swift

This file was deleted.

36 changes: 36 additions & 0 deletions SwiftUITalk/Views/DragRectangleView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//
// DragRectangle.swift
// SwiftUITalk
//
// Created by Stefan Kofler on 30.10.19.
// Copyright © 2019 QuickBird Studios GmbH. All rights reserved.
//

import SwiftUI

struct DragRectangleView: View {

@State private var translation: CGSize = .zero
@State private var isDragging = false

var body: some View {
BockView()
}

}

struct BockView: View {

var body: some View {
Rectangle()
.cornerRadius(16)
.frame(width: 100, height: 100)
}

}

struct ExerciseView_Previews: PreviewProvider {
static var previews: some View {
DragRectangleView()
}
}

0 comments on commit 706d40f

Please sign in to comment.