Post

Replies

Boosts

Views

Activity

Selecting WindowGroup to open at app startup.
How can I programmatically select which WindowGroup to open when the my application is launched? For example: @main struct SampleWorkingApp: App { var body: some Scene { WindowGroup(id: "wg1") { ViewOne() } WindowGroup(id: "wg2") { ViewTwo() } } } I want to select between wg1 and wg2 depending on a value in UserDefaults.standard. The following code produces a compile error, but it shows what I want to do. @AppStorage("showFirstView") private var showFirstView = true var body: some Scene { if showFirstView { WindowGroup(id: "wg1") { ViewOne() } } else { WindowGroup(id: "wg2") { ViewTwo() } } }
4
0
621
Aug ’24
ReplayKit and RPBroadcastActivityViewController
I'm working on a project that will use iOS (and macOS) full screen broadcasting. For this I'm doing my research into ReplayKit and working on a proof of concept app. I'm able to broadcast the screen to Mobcrush but the view of RPBroadcastActivityViewController looks like this: The obvious problem is that the view looks all wrong with all the icons missing. why? In my device I have installed Twitch, Mobcrush, and YouTube. I don't know why Twitch doesn't appear here. If I start recording the screen from Control Center then I can stream to Twitch. I'm using an iPhone 7 with iOS 15.1 Any help will be greatly appreciated.
2
0
1.2k
Dec ’21
Where is WWDC 2016 session 601 "Go Live with ReplayKit"?
I'm developing and application that will use ReplayKit's Broadcast API to stream the screen of a iOS device. For that I'll need to create the Client App and the Broadcaster App. The WWDC videos about ReplayKit mention WWDC 2016 session 601 "Go Live with ReplayKit" but I can't find it. Can someone point me to that video or to its transcript?. Also, any other resource about the Broadcast API will be appreciated. Most of the samples and documentation that I've found on the web are for just streaming of the app's own screen. Thank you.
1
0
1.1k
Dec ’21
Selecting WindowGroup to open at app startup.
How can I programmatically select which WindowGroup to open when the my application is launched? For example: @main struct SampleWorkingApp: App { var body: some Scene { WindowGroup(id: "wg1") { ViewOne() } WindowGroup(id: "wg2") { ViewTwo() } } } I want to select between wg1 and wg2 depending on a value in UserDefaults.standard. The following code produces a compile error, but it shows what I want to do. @AppStorage("showFirstView") private var showFirstView = true var body: some Scene { if showFirstView { WindowGroup(id: "wg1") { ViewOne() } } else { WindowGroup(id: "wg2") { ViewTwo() } } }
Replies
4
Boosts
0
Views
621
Activity
Aug ’24
ReplayKit and RPBroadcastActivityViewController
I'm working on a project that will use iOS (and macOS) full screen broadcasting. For this I'm doing my research into ReplayKit and working on a proof of concept app. I'm able to broadcast the screen to Mobcrush but the view of RPBroadcastActivityViewController looks like this: The obvious problem is that the view looks all wrong with all the icons missing. why? In my device I have installed Twitch, Mobcrush, and YouTube. I don't know why Twitch doesn't appear here. If I start recording the screen from Control Center then I can stream to Twitch. I'm using an iPhone 7 with iOS 15.1 Any help will be greatly appreciated.
Replies
2
Boosts
0
Views
1.2k
Activity
Dec ’21
Where is WWDC 2016 session 601 "Go Live with ReplayKit"?
I'm developing and application that will use ReplayKit's Broadcast API to stream the screen of a iOS device. For that I'll need to create the Client App and the Broadcaster App. The WWDC videos about ReplayKit mention WWDC 2016 session 601 "Go Live with ReplayKit" but I can't find it. Can someone point me to that video or to its transcript?. Also, any other resource about the Broadcast API will be appreciated. Most of the samples and documentation that I've found on the web are for just streaming of the app's own screen. Thank you.
Replies
1
Boosts
0
Views
1.1k
Activity
Dec ’21