Post

Replies

Boosts

Views

Activity

Reply to How to call a view in SwiftUI?
When using EmployeeDetails(), you need to pass it an Employee. e.g. struct EmployeeDetails_Previews: PreviewProvider { static var previews: some View { let employee = Employee() /// However you create an Employee... return EmployeeDetails(employee: employee) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’22
Reply to Developer Documentation within Xcode is too small
Xcode can set text sizes quite flexibly... Xcode > Preferences > Themes Source Editor Console ...but as you have seen, this seems to have no effect on the Developer Documentation But there's also: Xcode > Preferences > General Navigator Size: {System, Small, Medium, Large} ...which changes the size of text in the Navigator (the "side bar", both in Xcode itself, and the Developer Documentation) ...so this is one of the things you wanted. A small win?
Feb ’22
Reply to Insert Image into RoundedRectangle()
There are a number of ways you could do this... I would drop the RoundedRectangle, and use the Image as the navigation link Give it some padding Set the background color Set the corner radius NavigationLink(destination: EmptyView()) { Image(systemName: "heart.fill") .padding(100) .background(Color.red) .cornerRadius(25) } Alternatively, if you want to keep the RoundedRectangle (for some other reason) use a ZStack, like this: NavigationLink(destination: EmptyView()) { ZStack { RoundedRectangle(cornerRadius: 25) .fill(Color.red) Image(systemName: "heart.fill") } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’22
Reply to iOS app Family Sharing flag
So our users think they can share our subscription in their family. but I'm talking about Family sharing for the app itself, not for in-app subscriptions It's a free app, so anyone can download it, for free. "Family Sharing" is for sharing the subscription. Apple say: You can now enable Family Sharing for auto-renewable subscriptions and non-consumable in-app purchases, allowing users to share their purchases with up to five family members
Feb ’22