paint-brush
Mastering UIView Geometry: A Dive into UIKit's Foundational Class and Geometry Concepts for iOSby@psharanda
4,965 reads
4,965 reads

Mastering UIView Geometry: A Dive into UIKit's Foundational Class and Geometry Concepts for iOS

by Pavel Sharanda8mDecember 13th, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

This article explains the key aspects of UIView geometry, essential for iOS developers to master. *Provides an interactive tool for exploring UIView properties* Available at https://github.com/psharanda/UIViewGeometry. *Defines and Illustrates key concepts* Frame: Determines the view's location and size in its superview's coordinates. Bounds: Represents the view's size and location within its own coordinate system. Center: The center point of the view's frame, influenced by the anchorPoint. Transform: Allows for affine transformations like scaling, rotation, and translation. AnchorPoint: The reference point for transformations within the view. *Explores Advanced Topics* Frame Computation: Frame is computed by applying transformations to bounds, taking anchorPoint and center into account. AutoLayout: It focuses on calculating bounds and center, excluding frame, transform, and anchorPoint.

Company Mentioned

Mention Thumbnail
featured image - Mastering UIView Geometry: A Dive into UIKit's Foundational Class and Geometry Concepts for iOS
Pavel Sharanda HackerNoon profile picture
Pavel Sharanda

Pavel Sharanda

@psharanda

Software Engineer @Snap. Building things for iOS / macOS / Android / Figma. Specializing in UI / UX / Graphics

0-item

STORY’S CREDIBILITY

Guide

Guide

Walkthroughs, tutorials, guides, and tips. This story will teach you how to do something new or how to do something better.

L O A D I N G
. . . comments & more!

About Author

Pavel Sharanda HackerNoon profile picture
Pavel Sharanda@psharanda
Software Engineer @Snap. Building things for iOS / macOS / Android / Figma. Specializing in UI / UX / Graphics

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite