#scrollview

2025-04-07

Почему нельзя использовать RecyclerView в NestedScrollView и как это исправить?

Почему нельзя использовать NestedScrollView вместе с RecyclerView? Я попробую ответить на этот вопрос, и покажу как надо делать

habr.com/ru/articles/897894/

#Android #Kotlin #xml #collapsingtoolbar #recyclerview #adapter #NestedScrollVIew #scrollview #scroll #ViewType

2025-01-29

Kleiner uBlock Origin-Tipp: Mit den folgenden Filtern nervt Facebook nach Scrollen nicht mehr herum, dass man sich erst einloggen muss.

facebook.com##+js(trusted-click-element, body > div[id^="mount"] #scrollview ~ div div[role="button"]:has(> div[data-visualcompletion="ignore"]) )
facebook.com##div[id^="mount"] div:not([id]):not([class]):not([style]) > div[data-nosnippet]
facebook.com##+js(aeld, scroll)
facebook.com##body > div[class*="__fb-light-mode"]

(Irgendwo bei Reddit gefunden, ich find's aber nicht mehr. Generell solltet ihr natürlich nicht einfach blind fremde Filter hinzufügen.)

2024-09-19

Готовый компонент UI свайп-панели c добавлением scrollView, и других элементов ui. (iOS Swift)

ContainerController компонент пользовательского интерфейса. Это копия свайп-панели из приложения: AppleMaps github.com/mrustaa/ContainerCo Он может: - Анимировано перемещаться 3 позиции Верх / Середина / Вниз можно настраивать позиции - Добавлять несколько ContainerController (друг на друга) в одном контроллере - Добавлять любой тип ScrollView: TableView / CollectionView / TextView и управлять панелью за счет скрола - Панель управляется жестом или прокруткой (вертикально) - Можно закреплять HeaderView на вверху / и FooterView внизу 1) Добавлять фоновый цвет / прозрачность размытия фона 2) Настраивать окружность углов cornerRadius 3) Настраивать тень контейнера - При поднятии наверх = Можно добавить тень фона позади компонента 1) Можно настраивать левые / правые отступы 2) И настраивать левые / правые отступы для ландшафтного разворота

habr.com/ru/articles/844732/

#swift__разработка #swipe #panel #designer #tableview #collection #move #gesture #scrollview #uicomponents

2024-07-09

One WWDC24 new API a day until all Sessions are watched
Day 2
SwiftUI .onScollPhaseChange() easily determines the scrolling state of ScrollView (finally)

#Swift #swiftui #ios #xcode #apple #wwdc24 #wwdc #scrollview

2024-03-06

🚀 Check out our latest tutorial on using ScrollView in SwiftUI! Learn how to create dynamic and interactive scrolling content with ease. 📱✨

2023-12-30

Oh! Even though you apparently can't drive a Shader using ScrollTransitionPhase, there's a different way to pass scroll position info into a shader that *does* work:

If you use the visualEffect modifier on the scroll view's children, it gives you a GeometryProxy without any of the side effects of wrapping your view in a GeometryReader. You can then use `proxy.frame(in: .scrollView)` to figure out where it is in the scroll view and drive your shader values from that

#SwiftUI #ScrollView #iOSDev

2023-10-09

#SwiftUI #UIViewRepresentable #ScrollView #LazyVStack

I’m working on a gnarly problem with LazyVStack in a scroll view, where the rows contain UITextView subclasses. When I focus on text view and keyboard comes up, the text view immediately loses focus if it’s towards the bottom of scroll view.

I’m debugging my views with `Self._printChanges()`, and it often tells me: `MyView: @self changed.` I suspect it’s related. Docs aren’t really clear: what does `@self changed` really mean here? 😀

2023-09-30

#SwiftUI #ScrollView

I am not a big fan of SwiftUI today.

I was fighting to create a moderately complex layout. VStack where each item is a Grid. Grids have empty cells. I had to do this nonsense to get the grid layout to be correct.

As a final step, I put the correct-looking VStack inside a vertical ScrollView. Expecting it to just work.

Nope. Everything went to sh*t, and the layout of the grids collapsed horizontally again into some nonsense.

🤬

Empty cells with color.clear in Grid
César Pinto CastilloJagCesar
2023-09-13

I had completely missed the new `.scrollClipDisabled()` modifier launched this year!

This modifier lets us disable clips to bounds on . Useful if you have views that render outside the scrollview.

developer.apple.com/documentat

See top left recipe in attached screenshots for an example.

OMG, just spent > 2 hours trying to make a ScrollView scroll and turns out its a bug in the library for the parent component. 😭

#ReactNative #ScrollView #modals

2023-06-27

#SwiftUI #ScrollView

In this year’s platform, we got scrollTransition modifier that lets you modify the appearance of scroll view items as they enter and leave the viewport. Which is cool.

I would like additional API to get informed of phase changes, so I could reconfigure rest of UI.

Does this make sense to you? Filed as FB12459952.

Currently I can do this with a GeometryReader hack, but it’s dirty, I’d like cleaner API.

Proposed onScrollTransitionPhaseChange
2023-06-07

#SwiftUI #ScrollView #macOS

My SwiftUI pet peeve. On macOS, when you resize a window that has ScrollView + LazyVStack, the layout looks funky and erratic. I guess that is because LazyVStack keeps adding and removing views as the viewport height changes and it keeps recomputing which views it should (not) include.

Was like this in last year’s SDK, seems the same in this year’s beta 1 as well.

Not sure what’s my expected behavior, but … not this.

@curtclifton should I file a FB?

2023-06-02

#SwiftUI #ScrollView #iosdev

Has anyone seen this? When you repeatedly issue scrollTo calls in SwiftUI when the text value arrives from upstream and changes frequently, the system ignores those. But if you throttle the scrollTo calls with a large timeout, it works correctly.

I think I’m missing something. Any ideas and suggestions in which direction I should dig more?

SwiftUI scrollTo throttling

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst