@dokun1 Oh yeah, sorry :\
Post
Replies
Boosts
Views
Activity
You can do something like this:
I created a Fonts folder inside my project folder. Inside the Fonts folder I dragged and dropped my fonts file which should be in a .ttf format. Then I used this code to use that font:
Text("Muskaan Agrawal")
.font(Font.custom("Pacifico-Regular", size: 40))
Then you go to the info.plist file inside your project folder. It should say "information property list". If you hover next to that you can click the plus button. The placeholder should say "App Category". You click on that and change it "Fonts provided by Application". Under the value column corresponding to the "fonts provided by application" section you type in the name of the fonts file. In my case this was "Pacifico-Regular.ttf".
That should work if not you can go to the launch screen and add a label. Change the font to your chosen font and if it works that means that you have successfully imported the font and that you might need to check for spelling errors when you choose your font style in the Text box.
Can you post a screenshot or some of your code? From what I understand you can set the opacity of your slider to clear rather than making the color clear. That might help you hide the slider.
If you want to hide just the line then you can take a look at this answer on stackOverflow: https://stackoverflow.com/questions/57101754/how-customise-slider-blue-line-in-swiftui
Overall, "SwiftUI's Slider doesn't let you customize its appearance as of Xcode 11 beta 4. " but if you want to hide the whole thing then setting the opacity to 0 should work
I figured out another way actually as well. I made a variable and set it to an empty string value so when it was correct I made the variable = "correct". I then inputed into a text box in my VStack.
var correctOrIncorrect: String = ""
Text(correctOrIncorrect)
if correctAnswer == quiz.answer {
correctOrIncorrect = "Good Job!"
} else {
correctOrIncorrect = "Correct answer is \(correctAnswer)"
There is a Udemy Course called "iOS 13 & Swift 5 - The Complete iOS App Development Bootcamp" by Angela Yu. Occasionally Udemy gives out courses on deals so I got this one for $10.99. This course is amazing. It has content for 60 hours and I learned everything I know from there. I definitely recommend it.