Post

Replies

Boosts

Views

Activity

Reply to OutlineView in SwiftUI
It got released on the WWDC20 - there's now OutlineGroup - https://developer.apple.com/documentation/swiftui/outlinegroup which allows code like this to be written: struct FileItem: Hashable, Identifiable, CustomStringConvertible { 		var id: Self { self } 		var name: String 		var children: [FileItem]? = nil 		var description: String { 				switch (children) { 				case nil: 						return "πŸ“„ \(name)" 				case .some(let children): 						return children.count > 0 ? "πŸ“‚ \(name)" : "πŸ“ \(name)" 				} 		} } let data = 	FileItem(name: "users", children: 		[FileItem(name: "user1234", children: 			[FileItem(name:"Photos", children: 				[FileItem(name: "photo001.jpg"), 				 FileItem(name: "photo002.jpg")]), 			 FileItem(name:"Movies", children: 				 [FileItem(name: "movie001.mp4")]), 					FileItem(name:"Documents", children: []) 			]), 		 FileItem(name: "newuser", children: 			 [FileItem (name: "Documents", children: []) 			 ]) 		]) OutlineGroup(data, children: \.children) { item in 		Text ("\(item.description)") }
Jun ’20
Reply to Any alternative to the Mac App Store?
I’ve never really released a full app, but as a consumer perspective, I think putting it on MAS is the best. Don’t expect for people to find you so in MAS as there are too many low quality apps, but clicking the MAS link and installing it is much less friction than downloading a .dmg/.zip and moving files manually or installing a .pkg. My advice is to makes a pretty static site with feature explanations and a big button to the MAS.
Jun ’20