Skip to content

edwurtle/GlobalTintBug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GlobalTintBug

This project shows Global Tint bug in SwiftUI.

Uses Global AccentColor described in this article:

https://www.bigmountainstudio.com/members/posts/27630-how-do-i-add-a-global-accent-color-to-a-swiftui-1-0-project

However action sheets behave oddly.

struct ContentView: View {
    @State var isPresented: Bool = false
    var body: some View {
        Button("Present Sheet"){
            isPresented.toggle()
        }
        .actionSheet(isPresented: $isPresented){
            ActionSheet(title: Text("title"), buttons: [
                .default(Text("item 1")),
                .default(Text("item 2")),
                .cancel()
            ])
        }
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages