Skip to content

francescoleoni98/FLWhatsNew

Repository files navigation

FLWhatsNew

Configuration

Specify the configuration

		WhatsNewStore.configure(.init(appName: "My App", brandColor: .black, foregroundColor: .white))

Display the screen

let versionsStore = WhatsNewStore(collection: [
	// Version configurations...
]

var body: some View {
	content
		.showWhatsNew(store: versionsStore, appReviewURL: "https://url.to.appstore") {
			Image("app")
				.resizable()
				.scaledToFit()
				.clipShape(.rect(cornerRadius: 20))
				.overlay {
						RoundedRectangle(cornerRadius: 20)
							.stroke(.white.opacity(0.1), lineWidth: 1)
				}
		}
}

Set testing

If you need to see the WhatsNew screen while testing.

WhatsNewStore.isTesting = true

About

A lightweight Swift package that presents a What's New screen.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages