Closed mgacy closed 1 year ago
I like that idea
Maybe UIKit and swiftui related stuff is in a singlular UI target?
Yeah, I was leaning towards that direction
I added a separate LyticsUI
target and product. I considered organizing its source files according to our usual View Modifiers
(and in the future, Extensions
and Protocols
) directories but decided that SwiftUI
and (in the future, UIKit
) would be the most relevant organizing principle.
Adds view modifiers and
View
methods to make SDK usage with SwiftUI more convenient. These were added to a separateLyticsUI
libraryAdds
View
method to emit screen eventAdds models, view methods, and
Lytics
methods to support:View.onContinueUserActivity(_:perform:)
View.onOpenURL(perform:)
Also adds
Lytics
method to supportUIApplicationDelegate.application(_:performActionFor:completionHandler:)
Finally moves event names from
Constants
intoEventNames
Demo App
View.trackScreen()
to send screen events for EventDetail, Settings views