mirror of
https://github.com/lumaa-dev/BubbleApp.git
synced 2025-02-09 08:28:48 +01:00
fixes and improvements
This commit is contained in:
parent
fc90c766d9
commit
58a34b75c3
@ -45,10 +45,10 @@ struct CompactPostView: View {
|
||||
initialLike = isLiked
|
||||
}
|
||||
.task {
|
||||
await loadEmbeddedStatus(status: status)
|
||||
// await loadEmbeddedStatus(status: status)
|
||||
|
||||
if let client = accountManager.getClient() {
|
||||
if let newStatus: Status = try? await client.get(endpoint: Statuses.status(id: status.reblog?.id ?? status.id)) {
|
||||
if let newStatus: Status = try? await client.get(endpoint: Statuses.status(id: status.id)) {
|
||||
status = newStatus
|
||||
}
|
||||
}
|
||||
@ -188,7 +188,7 @@ struct CompactPostView: View {
|
||||
|
||||
if status.reblog != nil {
|
||||
HStack (alignment:.center, spacing: 5) {
|
||||
Image(systemName: "bolt.horizontal")
|
||||
Image(systemName: "bolt.horizontal.fill")
|
||||
|
||||
Text("status.reposted-by.\(status.account.username)")
|
||||
}
|
||||
|
@ -68,6 +68,7 @@ struct PostAttachment: View {
|
||||
.onAppear {
|
||||
if let url = attachment.url {
|
||||
player = AVPlayer(url: url)
|
||||
player?.preventsDisplaySleepDuringVideoPlayback = false
|
||||
player?.audiovisualBackgroundPlaybackPolicy = .pauses
|
||||
player?.isMuted = true
|
||||
player?.play()
|
||||
@ -104,8 +105,9 @@ struct PostAttachment: View {
|
||||
.onAppear {
|
||||
if let url = attachment.url {
|
||||
player = AVPlayer(url: url)
|
||||
player?.preventsDisplaySleepDuringVideoPlayback = false
|
||||
player?.audiovisualBackgroundPlaybackPolicy = .pauses
|
||||
player?.isMuted = false
|
||||
player?.isMuted = true
|
||||
player?.play()
|
||||
}
|
||||
}
|
||||
|
@ -153,7 +153,6 @@ struct ProfileView: View {
|
||||
.safeAreaPadding(.vertical)
|
||||
.padding(.horizontal)
|
||||
}
|
||||
.environmentObject(navigator)
|
||||
}
|
||||
|
||||
var statusesList: some View {
|
||||
|
@ -54,6 +54,7 @@ class HapticManager {
|
||||
|
||||
do {
|
||||
HapticManager.engine = try CHHapticEngine()
|
||||
engine?.isMutedForHaptics = false
|
||||
try engine?.start()
|
||||
} catch {
|
||||
print("Error creating the engine: \(error.localizedDescription)")
|
||||
|
@ -3,8 +3,8 @@
|
||||
import SwiftUI
|
||||
|
||||
struct SettingsView: View {
|
||||
@Environment(UniversalNavigator.self) private var uniNav: UniversalNavigator
|
||||
@State var navigator: Navigator
|
||||
@State private var sheet: SheetDestination?
|
||||
|
||||
var body: some View {
|
||||
NavigationStack(path: $navigator.path) {
|
||||
@ -42,7 +42,7 @@ struct SettingsView: View {
|
||||
AppAccount.clear()
|
||||
navigator.path = []
|
||||
navigator.selectedTab = .timeline
|
||||
sheet = .welcome
|
||||
uniNav.presentedCover = .welcome
|
||||
} label: {
|
||||
Text("logout")
|
||||
.foregroundStyle(.red)
|
||||
@ -52,7 +52,6 @@ struct SettingsView: View {
|
||||
}
|
||||
}
|
||||
.withAppRouter(navigator)
|
||||
.withCovers(sheetDestination: $sheet)
|
||||
.listThreaded()
|
||||
.navigationTitle("settings")
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
|
Loading…
x
Reference in New Issue
Block a user