using Intrepid.Utilities;
using UnityEngine;
using UnityEngine.UI;

namespace Intrepid.Core.UI.ScrollView
{
    public class VerticalScrollViewUI : MonoBehaviour
    {
        [GroupInjections, SerializeField] private ScrollRect scrollRect;

        public float Value
        {
            get => scrollRect.verticalScrollbar.value;
            set => scrollRect.verticalScrollbar.value = value;
        }
    }
}