Apple plans to release a free coding education app Tuesday that it developed with middle-school students in mind, in the latest salvo among technology companies to gain share in the education market and to nurture product loyalty among children. Apple’s app, called Swift Playgrounds, introduces basic computer programming concepts, like sequencing logic,...