Telegram Group & Telegram Channel
This media is not supported in your browser
VIEW IN TELEGRAM
Динамическая адаптация к доступному пространству с помощью ViewThatFits

ViewThatFits - это компонент SwiftUI, доступный с iOS 16.

Вкратце принцип работы следующий: ViewThatFits выбирает первое child view, чей идеальный размер по заданным осям впишется в предложенный размер.

Обычно это происходит в порядке от наибольшего к наименьшему, но, так как наше вью иногда может поместиться только вдоль одной оси, порядок может быть нарушен.

По умолчанию ViewThatFits ограничивается по горизонтальной и вертикальной осям.

📖 Неплохой пример использования ViewThatFits есть тут и в официальной документации.

😃 iOS Dev
Please open Telegram to view this post
VIEW IN TELEGRAM
1020👍8👏5❤‍🔥3🔥311🎉1🎄1



tg-me.com/iosdev/1513
Create:
Last Update:

Динамическая адаптация к доступному пространству с помощью ViewThatFits

ViewThatFits - это компонент SwiftUI, доступный с iOS 16.

Вкратце принцип работы следующий: ViewThatFits выбирает первое child view, чей идеальный размер по заданным осям впишется в предложенный размер.

Обычно это происходит в порядке от наибольшего к наименьшему, но, так как наше вью иногда может поместиться только вдоль одной оси, порядок может быть нарушен.

По умолчанию ViewThatFits ограничивается по горизонтальной и вертикальной осям.

📖 Неплохой пример использования ViewThatFits есть тут и в официальной документации.

😃 iOS Dev

BY iOS Dev


Share with your friend now:
tg-me.com/iosdev/1513

View MORE
Open in Telegram


telegram Telegram | DID YOU KNOW?

Date: |

Start with a fresh view of investing strategy. The combination of risks and fads this quarter looks to be topping. That means the future is ready to move in.Likely, there will not be a wholesale shift. Company actions will aim to benefit from economic growth, inflationary pressures and a return of market-determined interest rates. In turn, all of that should drive the stock market and investment returns higher.

The messaging service and social-media platform owes creditors roughly $700 million by the end of April, according to people briefed on the company’s plans and loan documents viewed by The Wall Street Journal. At the same time, Telegram Group Inc. must cover rising equipment and bandwidth expenses because of its rapid growth, despite going years without attempting to generate revenue.

telegram from us


Telegram iOS Dev
FROM USA