Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F14752753
WFNavigation.swift
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
726 B
Subscribers
None
WFNavigation.swift
View Options
import
SwiftUI
struct
WFNavigation
<
CollectionList
,
PostList
,
PostDetail
>:
View
where
CollectionList
:
View
,
PostList
:
View
,
PostDetail
:
View
{
@
ViewBuilder
var
collectionList
:
()
->
CollectionList
@
ViewBuilder
var
postList
:
()
->
PostList
@
ViewBuilder
var
postDetail
:
()
->
PostDetail
var
body
:
some
View
{
if
#
available
(
iOS
16
,
macOS
13
,
*
)
{
NavigationSplitView
{
collectionList
()
}
content
:
{
postList
()
}
detail
:
{
postDetail
()
}
}
else
{
NavigationView
{
collectionList
()
postList
()
postDetail
()
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Fri, Apr 24, 10:57 AM (1 h, 58 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d4/91/195f68411a9cfa0b723dc56d4af0
Attached To
rWFSUI WriteFreely SwiftUI
Event Timeline
Log In to Comment