using EncoreKit;
using UnityEngine;
public class HomeScreen : MonoBehaviour
{
private ClaimReminder _reminder;
private void Start()
{
_reminder = ClaimReminder.Create("home", new TriggerOptions
{
Appearance = new AppearanceConfig { AccentColor = "#5671FF" },
});
_reminder.HeightChanged += height => LayoutAround(height); // 0 while there is no claim
_reminder.SetFrame(new Rect(40, Screen.height - 200, Screen.width - 80, 0));
}
private void OnDestroy() => _reminder?.Dispose();
private void LayoutAround(float height) { /* move your own UI */ }
}