Skip to content

Commit

Permalink
Merge pull request #167 from dolbyio-samples/feature/sdk_bump_1.5.2
Browse files Browse the repository at this point in the history
Feature/sdk bump 1.5.2
  • Loading branch information
aravind-raveendran authored Oct 10, 2023
2 parents 07cd8b0 + db27317 commit 3a9ac09
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@ struct LandingView: View {
}
.hidden()

RecentStreamsScreen(
viewModel: recentStreamsViewModel,
isShowingStreamInputView: $isShowingStreamInputView,
isShowingFullStreamHistoryView: $isShowingFullStreamHistoryView,
isShowingSettingScreenView: $isShowingSettingScreenView,
playedStreamDetail: $playedStreamDetail
)
.opacity(viewModel.hasSavedStreams ? 1 : 0)

StreamDetailInputScreen(
isShowingSettingScreenView: $isShowingSettingScreenView,
playedStreamDetail: $playedStreamDetail
)
.opacity(viewModel.hasSavedStreams ? 0 : 1)
if viewModel.hasSavedStreams {
RecentStreamsScreen(
viewModel: recentStreamsViewModel,
isShowingStreamInputView: $isShowingStreamInputView,
isShowingFullStreamHistoryView: $isShowingFullStreamHistoryView,
isShowingSettingScreenView: $isShowingSettingScreenView,
playedStreamDetail: $playedStreamDetail
)
} else {
StreamDetailInputScreen(
isShowingSettingScreenView: $isShowingSettingScreenView,
playedStreamDetail: $playedStreamDetail
)
}
}
.navigationBarTitleDisplayMode(.inline)
.toolbar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,6 @@ struct StreamDetailInputScreen: View {
.submitLabel(.next)
.onReceive(streamName.publisher) { _ in
streamName = String(streamName.prefix(64))
.trimmingCharacters(in: .whitespacesAndNewlines)
}
.onAppear {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {
self.inputFocus = .streamName
}
}

DolbyIOUIKit.TextField(text: $accountID, placeholderText: "stream-detail-accountid-placeholder-label")
Expand All @@ -104,7 +98,6 @@ struct StreamDetailInputScreen: View {
.submitLabel(.done)
.onReceive(accountID.publisher) { _ in
accountID = String(accountID.prefix(64))
.trimmingCharacters(in: .whitespacesAndNewlines)
}

Button(
Expand Down Expand Up @@ -188,6 +181,12 @@ struct StreamDetailInputScreen: View {
.onTapGesture {
inputFocus = nil
}
.onAppear {
inputFocus = .streamName
}
.onDisappear {
inputFocus = nil
}
}

var demoAStream: some View {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/millicast/millicast-sdk-swift-package",
"state" : {
"revision" : "e0bff5416020e523689e3a0297b82537036a3b74",
"version" : "1.5.1"
"revision" : "670aa8de308dfa52145d59e14647390ca600cbd6",
"version" : "1.5.2"
}
},
{
Expand All @@ -15,7 +15,7 @@
"location" : "https://github.com/DolbyIO/rts-uikit-ios",
"state" : {
"branch" : "main",
"revision" : "833391f9bb9f3ebf4b57681e317102fabe3f33b3"
"revision" : "36b3e97c17cb7ce755fe9da6a765179403c0e6aa"
}
}
],
Expand Down

0 comments on commit 3a9ac09

Please sign in to comment.