EasyApp

AppData Configuration

Learn about AppData configuration

App Basic Information Configuration

  • In EasyApp, we place some basic App information configuration in the enum AppData. In addition to the basic App information configured in the example, you can configure the keys you need here, such as other social platforms, contact information, etc.

  • For appVersion, appBuildNumber, appName, appIdentifier, appDisplayName, you don't need to modify their values. They are generally used in the App's settings page, such as App version number, build version number, App name, App bundle identifier, App display name, etc.

    about

App Basic Information

appVersion - App version number

appBuildNumber - App build version number

appName - App name

appIdentifier - App bundle identifier

appDisplayName - App display name

Social Media Related

supportEmail - Support email

xURL - X (Twitter) URL

websiteURL - App website URL

Privacy Policy Related

privacyPolicyURL - Privacy policy URL

userAgreementURL - User agreement URL

termsOfServiceURL - Terms of service URL

EasyAppSwiftUI/Constants/Constants.swift
enum AppData {
	// MARK: - Version

	// This is a string value that is used to store the version of the app.
	public static let appVersion =
		Bundle.main.infoDictionary?["CFBundleShortVersionString"] as! String

	// MARK: - Build Number

	// This is a string value that is used to store the build number of the app.
	public static let buildNumber = Bundle.main.infoDictionary?["CFBundleVersion"] as! String

	// MARK: - App Name

	// This is a string value that is used to store the name of the app.
	public static let appName = Bundle.main.infoDictionary?["CFBundleName"] as! String

	// MARK: - App Identifier

	// This is a string value that is used to store the identifier of the app.
	public static let appIdentifier = Bundle.main.infoDictionary?["CFBundleIdentifier"] as! String

	// MARK: - App Build Number

	// This is a string value that is used to store the build number of the app.
	public static let appBuildNumber = Bundle.main.infoDictionary?["CFBundleVersion"] as! String

	// MARK: - App Display Name

	// This is a string value that is used to store the display name of the app.
	public static let appDisplayName = Bundle.main.infoDictionary?["CFBundleDisplayName"] as! String

	// MARK: - supportEmail

	// your support email
	public static let supportEmail = "your support email"

	// MARK: - Website

	// your website
	public static let websiteURL = "app website url"

	// MARK: - X

	// your X
	public static let xURL = "X(Twitter) url"

	// MARK: - Privacy Policy

	// your privacy policy
	public static let privacyPolicyURL = "privacy policy url"

	// MARK: - User Agreement

	// your user agreement
	public static let userAgreementURL = "user agreement url"

	// MARK: - Terms of Service

	// your terms of service
	public static let termsOfServiceURL = "terms of service url"
	
	// Your other configurations
	...
}

Next, we recommend you read how to integrate more services

Last updated on