Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F12142404
Bundle+AppVersion.swift
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
593 B
Subscribers
None
Bundle+AppVersion.swift
View Options
import
Foundation
private
struct
InfoPlistConstants
{
static
let
versionNumber
=
"CFBundleShortVersionString"
static
let
buildNumber
=
"CFBundleVersion"
}
extension
Bundle
{
public
var
appMarketingVersion
:
String
{
guard
let
result
=
infoDictionary
?[
InfoPlistConstants
.
versionNumber
]
as
?
String
else
{
return
"⚠️"
}
return
result
}
public
var
appBuildVersion
:
String
{
guard
let
result
=
infoDictionary
?[
InfoPlistConstants
.
buildNumber
]
as
?
String
else
{
return
"⚠️"
}
return
result
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 9, 8:48 PM (13 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3440790
Attached To
rWFSUI WriteFreely SwiftUI
Event Timeline
Log In to Comment