-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eric Hyche
committed
Jun 16, 2020
1 parent
e766e87
commit a8f98fe
Showing
33 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+2.02 KB
(110%)
...codeproj/project.xcworkspace/xcuserdata/ehyche.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
+1.46 KB
(110%)
...codeproj/project.xcworkspace/xcuserdata/ehyche.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
AdvancedTopics/Experimentation/ScrollViewPlayground.playground/Contents.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
//: Playground - noun: a place where people can play | ||
|
||
import UIKit | ||
import PlaygroundSupport | ||
|
||
class ScrollViewDelegate: NSObject, UIScrollViewDelegate { | ||
|
||
func scrollViewDidScroll(_ scrollView: UIScrollView) { | ||
print("scrollView.bounds = \(scrollView.bounds)") | ||
} | ||
} | ||
|
||
let containerView = UIView(frame: CGRect(x: 0.0, y: 0.0, width: 512.0, height: 512.0)) | ||
containerView.backgroundColor = UIColor.lightGray | ||
|
||
let scrollView = UIScrollView(frame: CGRect(x: 20.0, y: 20.0, width: 472.0, height: 472.0)) | ||
let scrollViewDelegate = ScrollViewDelegate() | ||
scrollView.delegate = scrollViewDelegate | ||
|
||
let image = UIImage(named: "tim-xlarge.jpg") | ||
let imageView = UIImageView(image: image) | ||
scrollView.addSubview(imageView) | ||
scrollView.contentSize = image?.size ?? CGSize(width: 472.0, height: 472.0) | ||
|
||
containerView.addSubview(scrollView) | ||
|
||
|
||
PlaygroundPage.current.liveView = containerView | ||
PlaygroundPage.current.needsIndefiniteExecution = true | ||
|
Binary file added
BIN
+190 KB
...Topics/Experimentation/ScrollViewPlayground.playground/Resources/tim-xlarge.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions
4
AdvancedTopics/Experimentation/ScrollViewPlayground.playground/contents.xcplayground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<playground version='5.0' target-platform='ios'> | ||
<timeline fileName='timeline.xctimeline'/> | ||
</playground> |
7 changes: 7 additions & 0 deletions
7
...mentation/ScrollViewPlayground.playground/playground.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file added
BIN
+10.2 KB
...round/playground.xcworkspace/xcuserdata/ehyche.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
AdvancedTopics/Experimentation/ScrollViewPlayground.playground/timeline.xctimeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Timeline | ||
version = "3.0"> | ||
<TimelineItems> | ||
</TimelineItems> | ||
</Timeline> |
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+1.48 KB
(100%)
...round/playground.xcworkspace/xcuserdata/ehyche.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-66 Bytes
(100%)
...codeproj/project.xcworkspace/xcuserdata/ehyche.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+3.02 KB
(120%)
...codeproj/project.xcworkspace/xcuserdata/ehyche.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+3.06 KB
(110%)
...codeproj/project.xcworkspace/xcuserdata/ehyche.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
+13 KB
(140%)
...codeproj/project.xcworkspace/xcuserdata/ehyche.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
Binary file added
BIN
+6 KB
StackViews/Experimentation/LearnAboutStackViews/LearnAboutStackViews/.DS_Store
Binary file not shown.
Binary file added
BIN
+6 KB
...Views/Experimentation/LearnAboutStackViews/LearnAboutStackViews/Assets.xcassets/.DS_Store
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-21 Bytes
(100%)
...codeproj/project.xcworkspace/xcuserdata/ehyche.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+471 Bytes
(100%)
...codeproj/project.xcworkspace/xcuserdata/ehyche.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.