-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content, Structure, and Interactions #19
Comments
|
Had no idea that primitives like https://bitsofco.de/what-is-the-shadow-dom/ So, really, |
On that thought, |
|
Word for component container that lays things outTemplate
Setting
Structure
Arrangement
Compositor
Composition
Configuration (configurator, configurational)
Choreography (choreographer)
|
|
UIView:
Layout and subview management
Event handling
|
layout, bounds, constraints, collision/hit detection of a rectangle-based layout when it is a circle or triangle? Hit testing of drawings. Chapter 18. Touches
|
Content objects as just containers of paint/pixels, lines, etc. 2d coordinate system. Bounded and described as a rectangle. Triangle in UIKit: context.beginPath()
context.move(to: CGPoint(x: rect.minX + _margin, y: rect.maxY - _margin))
context.addLine(to: CGPoint(x: rect.maxX - _margin, y: rect.maxY - _margin))
context.addLine(to: CGPoint(x: (rect.maxX / 2.0), y: rect.minY + _margin))
context.closePath()
context.setFillColor(_color.cgColor)
context.fillPath() |
an image is paint (pixels), a line, a box, text is paint. |
"View" is just something in a box (rectangular coordinates) that can be interacted with. This is why you can onClick any web element. smallest unit is a static pixel. But this isn't too helpful for a developer, so we instead are given lines, shapes, etc. Still only good for non-interactive content. So, we are given a higher abstraction: the View. |
Layout: question is what to do on overflow: wrap, scroll, cut off, zoom out, etc |
CALayer Tutorial for iOS: Getting Started | raywenderlich.com |
OR Paint, Layout, and Events (user generated and system generated)
Primitives made up of content, structure, and interaction components.
Content:
text is content, img is content.
divs are not
Structure:
divs
Interaction:
button, input, link
The text was updated successfully, but these errors were encountered: