Skip to content

dinkar1708/SwiftUIExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SwiftUIExample

SwiftUIExampleApp - run and press home button, tap home button again...

onChange scenePhase active onChange scenePhase inactive onChange scenePhase background onChange scenePhase inactive onChange scenePhase active 

AppDelegate - life cycle - clear app after run

AppDelegate willFinishLaunchingWithOptions AppDelegate didFinishLaunchingWithOptions onChange scenePhase active active onChange scenePhase inactive inactive onChange scenePhase background background AppDelegate applicationWillTerminate 

SceneDelegate - life cycle

- press home button AppDelegate willFinishLaunchingWithOptions AppDelegate didFinishLaunchingWithOptions SceneDelegate sceneWillEnterForeground onChange scenePhase active active SceneDelegate sceneDidBecomeActive onChange scenePhase inactive inactive SceneDelegate sceneWillResignActive onChange scenePhase background background SceneDelegate sceneDidEnterBackground - press app icon again... onChange scenePhase inactive inactive SceneDelegate sceneWillEnterForeground onChange scenePhase active active SceneDelegate sceneDidBecomeActive 

MemoryGraphView - Memory Leak Example with Strong References

This example demonstrates a memory leak involving strong references to a person and an apartment. Objects are visible in the graph, and memory is not properly cleaned up. Screen Shot 2021-09-21 at 12 11 04

MemoryGraphWithoutLeakView - Memory Leak Solved with Weak References

Memory issues have been resolved by implementing weak references, ensuring proper memory cleanup. Objects are no longer visible in the graph. Screen Shot 2021-09-21 at 12 14 34

About

Swift UI example

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages