Commit Graph

23 Commits

Author SHA1 Message Date
Matthew Chen
e4fec6082b Improve thumbnail quality. 2021-05-04 17:39:20 -03:00
Matthew Chen
40fa336cd2 Improve thumbnail quality. 2021-05-04 17:39:20 -03:00
Matthew Chen
112ebbcd71 Improve thumbnail quality. 2021-05-04 17:39:20 -03:00
Matthew Chen
d3ae62ebe3 Add checks around layout glitches. 2021-05-02 10:27:40 -07:00
Matthew Chen
0342e498f1 Cache imagePixelSize. 2021-04-29 21:47:23 -03:00
Matthew Chen
2a19b37e91 Load images for link previews async. 2021-04-29 21:47:23 -03:00
Matthew Chen
306e7b9047 Improve perf around link preview images. 2021-04-29 21:47:23 -03:00
Matthew Chen
a624d73908 Always truncate tail in link preview view. 2021-04-26 11:50:15 -03:00
Matthew Chen
4e016a74a9 Fix link preview corner rounding is compose view. 2021-04-24 10:14:14 -03:00
Matthew Chen
008d5ed3e5 Fix cancel button in link previews, fix missing "loading" indicator for link previews. 2021-04-24 09:48:00 -03:00
Matthew Chen
d992177e7e Manual layout: Link Previews. 2021-04-22 23:05:27 -03:00
Matthew Chen
2ff5e66ea8 Manual layout: Link Previews. 2021-04-22 23:05:27 -03:00
Matthew Chen
1e20ce94e9 Manual layout: Link Previews. 2021-04-22 23:05:27 -03:00
Matthew Chen
0b7bb6b747 Manual layout: Link Previews. 2021-04-22 23:05:27 -03:00
Matthew Chen
600e2b6eaa Manual layout: Link Previews. 2021-04-22 23:05:25 -03:00
Michelle Linington
fa2a29f16d IOS-1303: Incorrect corner radius in circular link preview views
Fixes a regression from some of the corner masking optimizations added
in 01a4ee4c.
2021-04-21 12:17:17 -07:00
Michelle Linington
01a4ee4cc7 Perf improvements for CVC rendering
Fixes some low-hanging expensive renders in CVC. Namely:
- There are a few places where shadow paths can be trivially calculated.
  Explicitly setting the shadow path saves an offscreen pass.
- Adopts CALayer corner masking where feasible (e.g. layers with
  consistent corner radii).
2021-04-08 13:32:59 -07:00
Matthew Chen
ea6f8a7f86 Clean up formatting of MOB values for display. 2021-04-06 13:57:08 -03:00
Matthew Chen
111338b59d Rewrite conversation view. 2020-12-10 12:44:13 -03:00
Matthew Chen
096ed67bb9 Convert font style convenience methods to properties. 2020-10-06 13:09:45 -03:00
Nora Trapp
063be4c358 Tweak link preview colors in dark mode 2020-09-29 11:35:56 -07:00
Michelle Linington
b899744629 IOS-842: Improved link preview thumbnail scaling
This relaxes the thumbnail size requirements on 3x devices. It also pins
the minimum thumbnail size to the width of the message bubble.

To prevent us from inadvertantly scaling down what would be a hero image
to a thumbnail size, this change also increases the max dimension of any
fetched link preview thumbnail.
2020-09-15 17:08:15 -07:00
Nora Trapp
f67bffd637 Add link preview support to share extension and forwarding 2020-09-08 19:58:29 -07:00