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

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

https://habr.com/ru/articles/897894/

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

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

Чтобы ответить на этот вопрос, сначала нужно понять как работает RecyclerView. У Recycler есть ViewHolder'ы, часть из них видны, а другие два пользователь не видит. Один...

Хабр

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.)

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

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

https://habr.com/ru/articles/844732/

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

GitHub - mrustaa/ContainerController: 👉↕️📱ContainerController 🧩✨⚙️ is a UI Component Swipe-Panel (Customizable). 💡 The idea is copied from the app: Apple Maps, Stocks. Swift version

👉↕️📱ContainerController 🧩✨⚙️ is a UI Component Swipe-Panel (Customizable). 💡 The idea is copied from the app: Apple Maps, Stocks. Swift version - mrustaa/ContainerController

GitHub

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

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

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

#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? 😀

#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.

🤬

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

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

https://developer.apple.com/documentation/swiftui/view/scrollclipdisabled(_:)

See top left recipe in attached screenshots for an example.

#tvOS17 #tvOS #recipeApp

scrollClipDisabled(_:) | Apple Developer Documentation

Sets whether a scroll view clips its content to its bounds.

Apple Developer Documentation

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