How to display big Emojis in UILabel? - ios

I try to show big Emoji on UIView using UILabel, but when I increase the font size it loses quakity of the Emoji image.
Is it possible to display Emoji 200x200px without losing quality?

Related

How to reduce and increase the font size based on screen size in iOS

I want to reduce and increase the font size of the text in a UILabel based on the screen size. I'm trying to build for iPhone 5s to iPad Pro screen size (if thats possible). The labels are in a vertical stack view
You can easily do that by changing the Autoshrink property of the label from its default value of Fixed Font Size to Minimum Font Scale.
Here I have attached an image to do that:
To achieve this:
click on the label and go to the attributes pane
change the "lines" to 0
In autoshrink click on minimum font size and set it to about half the size of your main font or a much smaller font

Use a UIImage with text or UILabel for automatically scaled text

I have text that needs to be scaled for each iOS device depending on the screen size. Apparently, you can't scale UILabel font size automatically except manually code wise (unless I am missing something). Instead of having to code for a lot of scenarios, would it be better to use an UIImage that has all the text? This way I can make the text scale automatically depending on device size?
You can make a UILabel's text scale automatically by (1) setting auto layout constraints for that UILabel such that its height and width are relative to the screen size, (2) setting the label's base font to at least the size which it would be on the largest screen, then (3) setting its "auto shrink" property such that its minimum font scale or minimum font size would be at least as small as the font on the smallest screen.
I do not recommend using an UIImage instead because you wouldn't be able to edit or localize it as easily.

Share image and text to messages/mail iOS

i want to send image and text to messages and mail on iOS.
I try to do it with UIActivityViewController, but
The images change "minimum" size, even i change to size 8x8 px (the image was big with hudge squares).
Image was always sharing before text, even i send a sequence like "text, image, text, image" it always return - "image, image, text, text".
It is the other way to do that properly?
It is possible to that on MFMessageComposeViewController or in MFMailComposeViewController?
Thanks for any help.

Working with smaller text and coping with system set Dynamic Text Size changes on the Apple Watch

I would like to know how people have reliably (from a system set dynamic text size POV) worked with smaller size fonts on the apple watch, with normal text and timer elements.
The former can have their text size assigned in their attributed text, however the preferred fonts (or descriptors) used to create the new smaller font don't seem to update their size with respect to the watch's dynamic text size setting.
The latter can't have their text size assigned directly though using their minimum text scale and resizing them in the storyboard you can shrink them to a given size ok. The problem from a dynamic text size POV is that these timers DO update their size from the dynamic text size setting but if you've used the storyboard scale and minScale route to resize them then you can run into trouble when larger text size is selected by the user and no longer fits in the smaller size frame so is truncated as ...
Essentially dynamic text size on the watch doesn't even seem to be properly exposed in any of the API so you can't even adapt UI element sizes in code depending on what the current system dynamic text size is set to.
Cheers

Optimization for text rendering

I have text displayed within a UIView which again is located within a UIScrollView.
The font size/size of the text should change its size based on its distance from a certain point on the screen.
There are many of these items on the screen which at a high rate need to rerender the same text at different sizes.
How can I optimize this in order for the text rendering to be less of a bottleneck?

Resources