-
Notifications
You must be signed in to change notification settings - Fork 31
ViewModifiers
Nick Sarno edited this page Feb 10, 2024
·
2 revisions
Listen for publishes from a Notification.
.onNotificationRecieved(name: UIApplication.didBecomeActiveNotification) { notification in
}
The first time a View appears.
.onFirstAppear {
}
The first time a View disappears.
.onFirstDisappear {
}
Use for header cells within a ScrollView to stretch the cell when user scrolls down too far (similar to Spotify UX).
.asStretchyHeader(startingHeight: 300)